bbggboxplot: bbggboxplot

View source: R/reportfunctions.R

bbggboxplotR Documentation

bbggboxplot

Description

boxplot with ggplot

Usage

bbggboxplot(
  data,
  factor,
  group,
  uniquecounts,
  ylabel = "Anzahl",
  xlabel = NULL,
  xrotate = FALSE,
  facet = NULL
)

Arguments

data

dataframe

factor

the factor to count

group

the group

uniquecounts

the unique counts

ylabel

the label of y axis default="Anzahl"

xlabel

the label of x axis default=NULL

xrotate

if TRUE the x and y axis will switch default=FALSE

facet

if a facet is given plot will be faceted default=NULL

Author(s)

Stefan Bartels, email@biobits.eu

Examples

## Not run: 
PatID<-seq(1,50)
PatientWeight<-runif(50, min=40, max=100)
PatientClass<-rep(c("ClassA","ClassB","ClassC","ClassB","ClassC"),10)
df<-as.data.frame(cbind(PatID,PatientWeight,PatientClass))
df$PatientWeight<-as.double(df$PatientWeight)
p1<-bbggboxplot(data=df,factor="PatientWeight",group="PatientClass",
                   uniquecounts="PatID",ylabel="Anzahl",bin=1)
p1

## End(Not run)


biobits/bbreportr documentation built on Feb. 14, 2025, 11:56 p.m.