View source: R/general_help_functions.R
plot_histogram_onetimepoint_twogroups | R Documentation |
Function to plot mean and SE for longitudinal observations for twogroups compared
plot_histogram_onetimepoint_twogroups(
thedata,
colname,
timepointstring,
xstring,
ylimits = NULL,
nbins = NULL
)
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 |
the historgram plot at a timepoint for two groups
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.