plot.gitter | R Documentation |
This function will plot a heatmap or bubble plot of a data.frame produced by gitter
or a dat file saved to disk.
## S3 method for class 'gitter' plot( x, title = "", plot_type = "heatmap", low = "turquoise", mid = "black", high = "yellow", show.text = F, text.color = "white", norm = T, show.flags = T, flag.color = "white", ... )
x |
The data.frame produced by |
title |
Title of plot. Default is blank. |
plot_type |
Type of plot. "heatmap" for a heatmap, "bubble" for a bubble plot. Default is "heatmap". |
low |
Color for the lower bound of colony sizes. Default is "turquoise". |
mid |
Color of the middle value of colony sizes. Default is "black". |
high |
Color for the upper bound of colony sizes. Default is "yellow". |
show.text |
Logical indicating if text representation of colony sizes should be overlaid on the plot. Default is |
text.color |
Color of text if show.text is |
norm |
Logical indicating if colony sizes should be normalized by dividing colony sizes the middle mean of values and capping them between 0-2. Default is |
show.flags |
Logical indicating if dots should be overlaid on the plot for flagged colonies. Default is |
flag.color |
Color of flag dot if show.flags is |
... |
Additional arguments. Not used. |
a ggplot heatmap or bubble plot.
f = system.file("extdata", "sample.jpg.dat", package="gitter") # Read in path as a gitter data object g = gitter.read(f) # Plot a heatmap plot(g, plot_type="heatmap") # Show a bubble plot plot(g, plot_type="bubble", low="black", high="red")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.