Nothing
knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(descriptr) library(dplyr)
In this document, we will introduce you to functions for generating different types of plots.
We have modified the mtcars
data to create a new data set mtcarz
. The only
difference between the two data sets is related to the variable types.
str(mtcarz)
The following functions will create plots for all or subset of continuous variables in the data set.
ds_plot_histogram(mtcarz)
ds_plot_density(mtcarz)
ds_plot_box_single(mtcarz)
ds_plot_scatter(mtcarz, mpg, disp, hp)
The following functions will create plots for all or subset of categorical variables in the data set.
ds_plot_bar(mtcarz)
ds_plot_bar_stacked(mtcarz, cyl, gear, am)
ds_plot_bar_grouped(mtcarz, cyl, gear, am)
ds_plot_box_group(mtcarz, cyl, gear, mpg, disp)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.