Last chance! 50% off unlimited learning
Sale ends in
Function use the raw data for made a boxplot graphic
plot_raw(
data,
type = "boxplot",
x,
y,
group = NULL,
xlab = NULL,
ylab = NULL,
glab = NULL,
ylimits = NULL,
xlimits = NULL,
xrotation = NULL,
legend = "top",
xtext = NULL,
gtext = NULL,
color = TRUE,
linetype = 1,
opt = NULL
)
plot
raw data
Type of graphic. "boxplot" or "scatterplot"
Axis x variable
Axis y variable
Group variable
Title for the axis x
Title for the axis y
Title for the legend
Limits and break of the y axis c(initial, end, brakes)
For scatter plot. Limits and break of the x axis c(initial, end, brakes)
Rotation in x axis c(angle, h, v)
the position of legends ("none", "left", "right", "bottom", "top", or two-element numeric vector)
Text labels in x axis using a vector
Text labels in groups using a vector
Colored figure (TRUE), black & white (FALSE) or color vector
Line type for regression. Default = 0
Add new layers to the plot
You could add additional layer to the plot using "+" with ggplot2 options
if (FALSE) {
library(inti)
fb <- potato
fb %>%
plot_raw(type = "box"
, x = "geno"
, y = "twue"
, group = NULL
, ylab = NULL
, xlab = NULL
, glab = ""
)
fb %>%
plot_raw(type = "sca"
, x = "geno"
, y = "twue"
, group = "treat"
, color = c("red", "blue")
)
}
Run the code above in your browser using DataLab