plotScatterplot | R Documentation |
Use argument variables
to denote the numeric variables
of interest. First one will be mapped on to the x-axis and the second
one on to the y-axis.
plotScatterplot(
object,
variables,
smooth = NULL,
smooth_clr = NULL,
smooth_method = NULL,
smooth_se = NULL,
smooth_span = NULL,
pt_alpha = NULL,
pt_clr = NULL,
pt_size = NULL,
verbose = NULL,
...
)
object |
An object of class |
variables |
Character vector. The names of the data variables of interest. |
smooth |
Logical. If TRUE, a loess fit is used to smooth the values. |
smooth_clr |
Character value. The color with which to display the smoothed model. |
smooth_method |
The smoothing method that will be used specified as a single character value (e.g. "lm", "glm", "gam", "loess"). |
smooth_se |
Logical. If set to TRUE the confidence interval will be |
smooth_span |
Numeric value. Controls the degree of smoothing.
Given to argument |
pt_alpha |
Numeric value. Specifies the degree of transparency of all points. |
pt_clr |
Character value. Specifies the color of all points. |
pt_size |
Numeric value. Specifies the size of all points. |
verbose |
Logical. If (Warning messages will always be printed.) |
... |
Additional arguments given to |
Returns a ggplot that can be additionally customized according to the rules of the ggplot2 framework.
library(SPATA2)
data("example_data")
object <- example_data$object_UKF275T_diet
plotScatterplot(object, variables = c("HM_HYPOXIA", "METRN"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.