View source: R/plot_precision_against_concentration.R
plot_precision_against_concentration | R Documentation |
Plot nice-looking plots of CS-wise precision against concentration. This function is a convenience function that makes plotting much more efficient than doing it manually.
plot_precision_against_concentration( data, units = "mmol/L", save = FALSE, save_path = getwd(), save_name = "Auto", save_device = "pdf", size = 8 )
data |
A data table with two ID-columns, namely |
units |
The units of the analyte considered. These are included in the x-axis name of the plots |
save |
Save plot to disk. Default is |
save_path |
Saving location given by a string. Default is the working directory |
save_name |
Name of the plot used to save. If |
save_device |
What file do you want to save the plot as. Valid inputs are 'pdf', 'png', 'jpeg', and more. Using 'png' will produce plots with retina |
size |
What should the size of the saved plot be? The number specified is the height of the plot. The width of the plot is calculated based on this and the golden ratio |
If the Measure
column in data
is lambda, grouping colors will not be included because no groups are available. If more than one comparison is considered, data
will go through the function facet_wrap()
A plot (ggplot2
object) based on data. Use lapply()
to make multiple plots at once. Then combine the plots using the egg
package.
plot_precision_against_concentration(data = precision_of_replicates(MS_wise(sampled_cs_measurements)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.