Description Usage Arguments Details Value Examples
This function runs an interactive dashboard which allows to explore data via 3djs and NVD3. Unlike its counterpart interactive.eda_ggplot
, using 3djs is not efficient for large data (10K+ observations) and automated smart plotting is not available. In addition, the filtering method is currently broken. This function is not recommended if you want d3js plot and you should use interactive.eda_plotly
.
1 2 3 4 | interactive.eda_d3js(data, type = "scatterChart",
dep_var = colnames(data)[1], indep_var = "None", group_var = "None",
filter_var = "None", plot_width = 1500, plot_height = 820,
f_back = "red", side_width = 300)
|
data |
Type: data.table (preferred) or data.frame. The data you want to explore. Using a data.table increases the processing speed. |
type |
Type: character. The type of plot requested to d3js nvds. You may choose between |
dep_var |
Type: character (currently overriden). The dependent variable to plot. Defaults to |
indep_var |
Type: character (currently overriden). The independent variable to plot. Defaults to |
group_var |
Type: character (currently overriden). The grouping variable to plot. Defaults to |
filter_var |
Type: character (feature currently broken). The filtering variable to plot. Defaults to |
plot_width |
Type: numeric. The width for the plot. Defaults to |
plot_height |
Type: numeric. The height for the plot. Defaults to |
f_back |
Type: character. A background color character for the header. Defaults to |
side_width |
Type: numeric. The width of the sidebar containing variable names. Defaults to |
Plotting is done using rCharts
, which must be loaded before running this function. There are issues if you open this in Internet Explorer 9 or under.
The colors (header: f_back
) allowed are the following:
blue color
black color
purple color
green color
red color
yellow color
Nothing
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
library(shiny)
library(shinydashboard)
library(rCharts)
library(datasets)
hair_eye <- as.data.frame(HairEyeColor)
interactive.eda_d3js(data = hair_eye,
type = "multiBarChart",
dep_var = "Hair", #ignored
indep_var = "Freq", #ignored
group_var = "Sex", #ignored
plot_width = 600,
plot_height = 420,
f_back = "red",
side_width = 300)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.