plot_histogram_onetimepoint_twogroups {packDAMipd}R Documentation

Function to plot mean and SE for longitudinal observations for twogroups compared

Description

Function to plot mean and SE for longitudinal observations for twogroups compared

Usage

plot_histogram_onetimepoint_twogroups(
  thedata,
  colname,
  timepointstring,
  xstring,
  ylimits = NULL,
  nbins = NULL
)

Arguments

thedata

the data where the observations are held

colname

columnname in the data where the intersted observations

timepointstring

the text that correspond to timepoints at which the descriptive analysis is done

xstring

xlable text

ylimits

on hsitogram plot

nbins

nbins the number of bins to plot histogram

Value

the historgram plot at a timepoint for two groups

Examples

eg_data <- as.data.frame(list(no = c(1, 2, 3, 4),
mark_at_1 = c(12, 7, 23, 45), gender = c("M", "F", "M", "F"),
mark_at_2 = c(12, 34, 89, 45), trialarm = c("1","1","2","2")))
plot_histogram_onetimepoint_twogroups(eg_data,  c("mark_at_2"), c("1","2"),
 "mark")

[Package packDAMipd version 1.1.0 Index]