View source: R/plot_interactive.R
plot_interactive | R Documentation |
Build different types of exploratory graphs (scatter plot, bar plot, pie chart). You can interactively choose the plot that you want create. Once you have chosen the plot, you can interactively choose the variables from the data set for which you want to build the plot.
plot_interactive(df)
df |
data set as data.frame |
It returns the chosen plot.
plot_interactive allows you to have an idea about the general trend of your data, and it's intended to be used with exploratory purpose.
if(interactive()) {
plot_interactive(iris)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.