View source: R/shotnoise_functions.R
orbi_plot_shot_noise | R Documentation |
This function creates a shot noise plot using a shotnoise
data frame created by the orbi_analyze_shot_noise()
function.
orbi_plot_shot_noise(
shotnoise,
x = c("time.min", "n_effective_ions"),
permil_target = NA_real_,
color = "ratio_label",
colors = c("#1B9E77", "#D95F02", "#7570B3", "#E7298A", "#66A61E", "#E6AB02", "#A6761D",
"#666666")
)
shotnoise |
a |
x |
x-axis for the shot noise plot, either "time.min" or "n_effective_ions" |
permil_target |
highlight the target permil in the shotnoise plot |
color |
which column to use for the color aesthetic (must be a factor) |
colors |
which colors to use, by default a color-blind friendly color palettes (RColorBrewer, dark2) |
plot shot noise
a ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.