View source: R/pmx-plots-matrix.R
pmx_plot_eta_matrix | R Documentation |
Eta matrix plot
pmx_plot_eta_matrix(
ctr,
title,
dname,
type.eta,
text_color,
is.shrink,
shrink,
point,
is.smooth,
smooth,
is.hline,
hline,
is.vreference_line,
vreference_line,
filter,
strat.facet,
facets,
strat.color,
trans,
pmxgpar,
labels,
axis.title,
axis.text,
ranges,
is.band,
band,
is.draft,
draft,
is.identity_line,
identity_line,
scale_x_log10,
scale_y_log10,
color.scales,
...
)
ctr |
pmx controller |
title |
character the plot title |
dname |
name of dataset to be used |
type.eta |
|
text_color |
color of the correlation text in the upper matrix |
is.shrink |
|
shrink |
|
point |
|
is.smooth |
|
smooth |
|
is.hline |
|
hline |
|
is.vreference_line |
|
vreference_line |
pmx_update parameters |
filter |
|
strat.facet |
|
facets |
|
strat.color |
|
trans |
|
pmxgpar |
a object of class pmx_gpar possibly the output of the pmx_gpar: Shared basic graphics parameters |
labels |
|
axis.title |
|
axis.text |
|
ranges |
|
is.band |
|
band |
|
is.draft |
|
draft |
|
is.identity_line |
|
identity_line |
|
scale_x_log10 |
|
scale_y_log10 |
|
color.scales |
|
... |
others graphics parameters passed :
eta_pairs parameters |
ggplot2 object
# basic use ---------------------------------------
ctr <- theophylline()
p <- ctr %>% pmx_plot_eta_matrix
# update graphical parameter ----------------------
## update labels
ctr %>% pmx_plot_eta_matrix(
labels = list(title = "Eta matrix new title")
)
## remove draft
ctr %>% pmx_plot_eta_matrix(is.draft = FALSE)
## change text color line
ctr %>% pmx_plot_eta_matrix(
text_color="red",
shrink=pmx_shrink(mapping=aes(color="magenta"))
)
## custom point aes and static parameters
## we can customize any geom_point parameter
ctr %>% pmx_plot_eta_matrix(
point = list(color = "blue", shape = 4)
)
# stratification ----------------------------------
## IGNORE continuous stratification
ctr %>% pmx_plot_eta_matrix(strat.color = "WT0")
## IGNORE categorical stratification
ctr %>% pmx_plot_eta_matrix(strat.facet = ~SEX)
# subsetting --------------------------------------
## we can use any expression involving the data
ctr %>% pmx_plot_eta_matrix(filter = EFFECT%in% c("Cl","ka"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.