import("arules")

importFrom("graphics", "par", "plot", "mtext", "text", "axis", "box")
importFrom("stats", "median", "kmeans", "cutree", "dist", "hclust", "na.omit", "quantile")
importFrom("grDevices", "hcl", "rgb", "gray.colors", "gray", "col2rgb",
  "colorRampPalette", "rainbow")
importFrom("methods", "is", "as", "new")
importFrom("utils", "installed.packages", "write.csv")
import("grid") ### need to use as depends in DESCRIPTION because of vcd
#import(igraph) ### we use now igraph::
importFrom("seriation", "seriate", "ser_permutation", "set_seriation_method",
  "permute", "get_order")
importFrom("scatterplot3d", "scatterplot3d")
importFrom("vcd", "mosaic", "doubledecker")
importFrom("colorspace", "heat_hcl", "sequential_hcl")
importFrom("DT", "datatable", "%>%", "formatRound")
importFrom("plotly","plot_ly","layout","renderPlotly","plotlyOutput")
importFrom("visNetwork", "visNetwork", "visIgraphLayout",
  "visOptions", "visNodes","renderVisNetwork","visNetworkOutput")

S3method(plot, rules)
S3method(plot, itemsets)
S3method(plot, grouped_matrix)

export("inspectDT")
S3method(inspectDT, rules)
S3method(inspectDT, itemsets)

export("ruleExplorer")
export("saveAsGraph")

## Deprecated
export("plotly_arules")