This package is used for data visualization, especially when there is a group variable in a dataset. It contains the function histogram_plot that can make histogram plots for a certain variable in different groups or levels in the dataset seperately.
You can install the released version of histogramplot from CRAN with:
install.packages("histogramplot")
And the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("graceyin06/545B-package")
There are two examples showing how to use this package to make seperate histogram plots.
#load the required packages
suppressMessages(library(dplyr))
suppressMessages(library(magrittr))
suppressMessages(library(datateachr))
suppressMessages(library(tidyverse))
Make the histogram plots for radius_mean in two diagnosis groups.
#load the dataset
library(gapminder)
#load the histogramplot package
library(histogramplot)
## basic example code
# make two histogram plots for radius_mean in two diagnosis groups.
histogram_plot(cancer_sample,diagnosis,radius_mean,"radius_mean")
#> [[1]]

#>
#> [[2]]

Make the histogram plots for lifeExp in five continents in gapminder datset .
### make the histogram plots for lifeExp in five continents.
histogram_plot(gapminder,continent,lifeExp,"lifeExp")
#> [[1]]

#>
#> [[2]]

#>
#> [[3]]

#>
#> [[4]]

#>
#> [[5]]

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.