importFrom("graphics", "abline", "axis", "box", "layout", "legend", "lines", "polygon", "par", "plot", "points", "rect", "segments", "text", "title", "boxplot","strheight", "strwidth")
importFrom("stats", "chisq.test", "pchisq", "cutree", "glm", "princomp", "reshape", "runif", "xtabs", "as.dist", "binomial", "cmdscale", "hclust","pnorm", "qnorm", "sd", "weighted.mean", "pt")

importFrom("stats", "chisq.test", "pchisq", "cutree", "glm", "princomp", "reshape", "runif", "xtabs", "as.dist", "binomial", "cmdscale", "hclust","pnorm", "qnorm", "sd", "weighted.mean", "pt", "relevel")

importFrom("stats", "ave", "chisq.test", "pchisq", "cutree", "glm", "princomp", "reshape", "runif", "xtabs", "as.dist", "binomial", "cmdscale", "hclust","pnorm", "qnorm", "sd", "weighted.mean", "pt", "relevel")

exportPattern(AddPortfolio, BuyFee, cashTicker, DetermineOrders_MeanRevert, DetermineOrders_RandomBuyAndHold, GetPortfolioPerformance, GetPortfolioWorthAtTime)
exportPattern(LoadMarketToDB, LoadStocksToDB, MeanRevertCorrelatePairwise, PrintSimulatorState, schemaHoldingsTableName, schemaMarketTableName, schemaPortfoliosTableName, schemaStocksTableName, schemaTransactionsTableName, SellFee, SimulateBroker, StoreHoldingsToDB, StorePortfoliosToDB, StoreSimulationResults, StoreCorrelationsToDB, StoreTransactionsToDB, VisualizeCorrelation)

#exportPattern("^[[:alpha:]]+")  #exports all functions incl utility functions to the end user
export(check, distTraitspace, plotComb, plotCorr, plotEach, print.traitspace, pval, Traitspace, TraitspaceMod, trueP)
# Import all packages listed as Imports or Depends
import(permute, mclust, graphics, grDevices, stats, utils)
#S3method("plot", "traitspace")
S3method("print", "traitspace")

#exportPattern("^[[:alpha:]]+")  #exports all functions incl utility functions to the end user
export(check, distTraitspace, plotComb, plotCorr, plotEach, print.traitspace, pval, Traitspace, TraitspaceMod, trueP)
# Import all packages listed as Imports or Depends
import(permute, mclust, graphics, grDevices, stats, utils)
#S3method("plot", "traitspace")
S3method("print", "traitspace")