plot_data | R Documentation |
Plot data
plot_data(
data,
geom = geom_point,
color = NULL,
fill = NULL,
linetype = NULL,
...,
palette = NULL,
fixed = list(),
theme = list()
)
data |
data.frame' |
geom |
geom_point, etc. |
color |
variable mapped to color (symbol) |
fill |
variable mapped to fill (symbol) |
linetype |
variable mapped to linetype (symbol) |
... |
mapped aesthetics |
palette |
color palette (named character vector) |
fixed |
fixed aesthetics (list) |
theme |
list with ggplot theme specifications |
ggplot object
Aditya Bhagwat, Johannes Graumann
file <- system.file('extdata/atkin.metabolon.xlsx', package = 'autonomics')
object <- read_metabolon(file)
object %<>% pca()
data <- sdt(object)
plot_data(data, x = `effect~sample_id~pca1`, y = `effect~sample_id~pca2`)
plot_data(data, x = `effect~sample_id~pca1`, y = `effect~sample_id~pca2`, color = subgroup)
plot_data(data, x = `effect~sample_id~pca1`, y = `effect~sample_id~pca2`, color = NULL)
fixed <- list(shape = 15, size = 3)
plot_data(data, x = `effect~sample_id~pca1`, y = `effect~sample_id~pca2`, fixed = fixed)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.