A plotting tool to visualize data from an edit_table object
1 2 3 4 5 6 | ## S3 method for class 'edit_table'
plot(this, field = "AllSites", event = "Mismatch",
mismatch = "all", group = "Tissue", n = NULL, text_size = 20,
perc_size = 10, perc_round = 0, plot = TRUE,
x_label = "Mismatch type", y_label = "Number of events",
y_range = "auto", denom_all = FALSE, legend = TRUE)
|
this |
an edit_table object |
field |
character naming member of edit_table to plot. A barplot is produced for members $AllSites, $RepSites, $mirnaTargetSites, and $VEP. A Venn Diagram is produced for member $Tissues |
event |
character naming which column from field to count |
mismatch |
character indicating which type of mismatch to consider, such as "AtoG". By default, considers all mismatch types |
group |
character selecting field to group (color code) by. |
n |
integer limiting number of events to n. Any number of events beyond n will be grouped into "other" category |
text_size |
numeric giving the size of axis and legend labels. |
perc_size |
numeric giving the size of percent labels above bars. |
perc_round |
numeric giving decimal places that percent labels round to. |
plot |
logical where TRUE returns a gg plot object. False returns the modified data.frame from which the gg object is constructed from. False can be used to combine datasets for "facet plotting". |
x_label |
character providing label for x axis. Use "none" to disable axis label. |
y_label |
character providing label for y axis. Use "none" to disable axis label. |
y_range |
numeric vector providing min and max of y axis range |
denom_all |
logical. If true, percentage labels will always be out of the total number of edits found. If false, only the number of edits in field will be considered. |
legend |
logical. If false, any legend that would otherwise appear is turned off. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.