Most of the graphs for datasets use the formula interface and are part of the lattice package, which is loaded together with the hanoverbase package.
%>%
Use vignette("ggformula")
within RStudio or this link to see more examples of ggformula.
Common graphs for categorical variables are dotplots and barcharts.
library(hanoverbase)
library(ggformula)
data(brfss)
gf_counts(brfss, ~genhealth)
brfss %>% gf_bar(~genhealth)
brfss %>% gf_barh(~genhealth)
brfss %>% gf_countsh(~genhealth, fill="blue", col="black")
brfss %>% gf_countsh(~genhealth, geom="point")
brfss %>% gf_percentsh(~genhealth)
brfss %>% gf_percents(~genhealth)
Common graphs for quantitative variables are histograms and box-and-whisker plots.