man/feature_boxplot.Rd
883f7f27
 % Generated by roxygen2: do not edit by hand
 % Please edit documentation in R/dataset_chart_classes.R
8db793ae
 \name{feature_boxplot}
883f7f27
 \alias{feature_boxplot}
d0f81a51
 \title{Feature boxplot}
8db793ae
 \usage{
9bf15429
 feature_boxplot(
   label_outliers = TRUE,
   feature_to_plot,
   factor_name,
   show_counts = TRUE,
e1fb8365
   style = "boxplot",
   jitter = FALSE,
   fill = FALSE,
9bf15429
   ...
 )
8db793ae
 }
c15c2bae
 \arguments{
09388373
 \item{label_outliers}{(logical) Label outliers. Allowed values are limited to the following: \itemize{ \item{\code{"TRUE"}: The index for outlier samples is included on the plot.}\item{\code{"FALSE"}: No labels are displayed.}} The default is \code{TRUE}.\cr}
56a019fe
 
d0f81a51
 \item{feature_to_plot}{(character, numeric, integer) The column name of the plotted feature.}
56a019fe
 
d0f81a51
 \item{factor_name}{(character) The name of a sample-meta column to use.}
56a019fe
 
09388373
 \item{show_counts}{(logical) Show counts. Allowed values are limited to the following: \itemize{ \item{\code{"TRUE"}: The number of samples for each box is displayed.}\item{\code{"FALSE"}: The number of samples for each box is not displayed.}} The default is \code{TRUE}.\cr}
56a019fe
 
09388373
 \item{style}{(character) Plot style. Allowed values are limited to the following: \itemize{ \item{\code{"boxplot"}: Boxplot style.}\item{\code{"violin"}: Violon plot style.}} The default is \code{"boxplot"}.}
e1fb8365
 
09388373
 \item{jitter}{(logical) Include points plotted with added jitter. The default is \code{FALSE}.\cr}
e1fb8365
 
09388373
 \item{fill}{(logical) Block fill the boxes or violins with the group colour. The default is \code{FALSE}.\cr}
e1fb8365
 
d0f81a51
 \item{...}{Additional slots and values passed to \code{struct_class}.}
9bf15429
 }
 \value{
5d51daa4
 A  \code{
 feature_boxplot
 } object. This object has no \code{output} slots.
 See \code{\link[struct]{chart_plot}} in the \code{struct} package to plot this chart object.
9bf15429
 }
 \description{
d0f81a51
 A boxplot to visualise the distribution of values within a feature.
9bf15429
 }
09388373
 \section{Inheritance}{
 
 A \code{feature_boxplot} object inherits the following \code{struct} classes: \cr\cr
55546c0b
 \verb{[feature_boxplot]} >> \verb{[chart]} >> \verb{[struct_class]}
09388373
 }
 
1a7cd70b
 \examples{
09388373
 M = feature_boxplot(
       label_outliers = FALSE,
       feature_to_plot = "V1",
       factor_name = "V1",
       show_counts = FALSE,
       style = "boxplot",
       jitter = FALSE,
       fill = FALSE)
 
40be1b5c
 D = MTBLS79_DatasetExperiment
1a7cd70b
 C = feature_boxplot(factor_name='Species',feature_to_plot='Petal.Width')
8db793ae
 chart_plot(C,D)
1a7cd70b
 }