Description Usage Arguments Details Examples

Function to plot Tendril results

1 2 3 | ```
## S3 method for class 'Tendril'
plot(x, term = NULL, coloring = "Terms",
interactive = FALSE, ...)
``` |

`x` |
An object of class tendril, as made by Tendril() |

`term` |
The term to extract. |

`coloring` |
Name of column used for coloring tendrils (only basic plots). 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 |

`interactive` |
Specifies if the plot must be interactive or not. If interactive == TRUE, plotly will be used to render the plot. Otherwise, (default) the plot will be rendered as a static image using ggplot2. |

`...` |
unused |

If saving the results of the function to a variable, this will be of class tendril and will contain the data passed to the plot function and the plot itself

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ```
# 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"
)
#Do plot
res <- plot(data, coloring = "Terms")
res <- plot(data, coloring = "p.adj")
#To re-do the plot after the first call:
print(res)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.