Description Usage Arguments Details Value Examples
View source: R/plot.scluminex.R
This function takes a scluminex
object and
creates a standard curve, residuals or QQ-plot
using ggplot2
package.
1 2 3 4 5 |
x |
an object of class |
type |
character describing the type of plot ('scurve','residuals' or 'qqplot'). Default 'scurve'. |
subset.list |
list of analytes to be plotted. Default all analytes. |
psize |
numeric point size |
ncol |
number of columns to plot the analytes. |
nrow |
number of rows to plot the analytes. |
out.limit |
value that defines an outlier. Must be positive value. Only applies for type 'residuals'. |
size.text |
value that defines the size of the well into the residuals plot. Only applies for type 'residuals'. |
size.legend |
size of the legend. |
interval |
'confidence' or 'prediction' character in order to plot the
fit and the corresponding bands. If |
level |
confidence level for the interval. Default 0.95, only applies for type 'scurve'. |
color.bkg |
character specifying the color of the background line.
|
... |
other arguments to be passed to |
All information in order to generate the plots is extracted
from the scluminex
object.
A ggplot
object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # Load data and estimate models
data(ecdata)
data(mfidata)
dat <- mfidata[mfidata$plate=="plate_1" & mfidata$analyte=="FGF",]
sdf <- data_selection(dat, ecdata)[[1]]
sdf_luminex <- scluminex("plate_1",sdf$standard, sdf$background,
"SSl4", bkg="ignore", fmfi="mfi", verbose=FALSE)
# Plot standard curves
plot(sdf_luminex, "sc")
# Plots residuals
plot(sdf_luminex, "res")
# Plot QQplot
plot(sdf_luminex, "qq")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.