View source: R/plot.TendrilPerm.R
plot.TendrilPerm | R Documentation |
Function to plot TendrilPerm results
## S3 method for class 'TendrilPerm' plot(x, coloring = "p.adj", percentile = FALSE, ...)
x |
An object of class TendrilPerm, as made by TendrilPerm() |
coloring |
Name of column used for coloring tendrils. Available coloring choices are: "Terms" - One tendril one color; "p" - Prop.test; "p.adj" - P-values adjusted using the False discovery rate method within each tendril; "fish" - Fisher.test; "rdiff" - Risk difference; "RR" - Risk Ratio; "OR" - Odds Ratio; "FDR.tot" - P-values adjusted using the False discovery rate method for all tendrils; and "TermsCount" - Total number of events for that specific type of event |
percentile |
Specifies if the plot must show percentile values. Default is FALSE. |
... |
unused |
# generate data using Tendril() data <- Tendril(mydata = TendrilData, rotations = Rotations, AEfreqThreshold = 9, Tag = "Comment", Treatments = c("placebo", "active"), Unique.Subject.Identifier = "subjid", Terms = "ae", Treat = "treatment", StartDay = "day", SubjList = SubjList, SubjList.subject = "subjid", SubjList.treatment = "treatment" ) tendril_perm <- TendrilPerm( tendril = data, PermTerm="AE40", n.perm = 200, perm.from.day = 1) #Do plot res <- plot(tendril_perm) res <- plot(tendril_perm, percentile = TRUE) #To re-do the plot after the first call: print(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.