R/plot_num_plots.R
plot_num_plots.Rd
Draws numeric plots (boxplots and violin plots) by target for selected columns.
plot_num_plots(df, variables = colnames(df), target, plot_type = "boxplot")
data frame with numeric values
column names to be included
name of target column
type of plots, 'boxplot' or 'violin'
list of plots
library("toRpEDA")
# drawing 4 plots
plot_num_plots(iris, target = "Species", plot_type="violin")
#> [[1]]
#>
plot_num_plots(iris, target = "Species", plot_type="boxplot")
#> [[1]]
#>
plot_num_plots(mtcars, target = "gear", plot_type="boxplot")
#> [[1]]
#>
#> [[2]]
#>
#> [[3]]
#>
plot_num_plots(mtcars, variables = c("wt", "mpg"), target = "gear", plot_type="boxplot")
#> [[1]]
#>