plot.params_process {PhylogeneticEM} | R Documentation |
Plot for class simul_process
Description
This function takes an object of class params_process
, and plots them along
with some data at the tips of the tree.
Usage
## S3 method for class 'params_process'
plot(
x,
phylo,
data = NULL,
traits,
automatic_colors = TRUE,
color_characters = "black",
color_edges = "black",
plot_ancestral_states = FALSE,
ancestral_states = NULL,
imposed_scale,
ancestral_cex = 2,
ancestral_pch = 19,
value_in_box = FALSE,
ancestral_as_shift = FALSE,
shifts_cex = 0.6,
shifts_bg = "chocolate4",
root_bg = "chocolate4",
shifts_adj = 0,
root_adj = 1,
color_shifts_regimes = FALSE,
regime_boxes = FALSE,
alpha_border = 70,
show.tip.label = FALSE,
label_cex = 0.5,
label_offset = 0,
axis_cex = 0.7,
edge.width = 1,
margin_plot = NULL,
gray_scale = FALSE,
...
)
Arguments
x |
an object of class |
phylo |
a phylogenetic tree. |
data |
a matrix of data at the tips of the tree. Must have p rows and
ntaxa columns. If these are simulated, use the |
traits |
a vector of integers giving the numbers of the trait to be plotted. Default to 1:p (all the traits). |
automatic_colors |
whether to color the edges automatically according to
their regimes. Default to TRUE. If FALSE, colors can be manually specified through
arguments |
color_characters |
if |
color_edges |
if |
plot_ancestral_states |
whether to plot the ancestral traits inferred at the internal nodes of the tree. Only available if only one trait is plotted. Default to FALSE. |
ancestral_states |
if |
imposed_scale |
if |
ancestral_cex |
if |
ancestral_pch |
if |
value_in_box |
whether to plot the value of the shift in a box on the edges. Only available when only one trait is plotted. Can be difficult to read on big trees. The size of the text in the boxes is controlled by parameter. Default to FALSE. |
ancestral_as_shift |
whether to represent the ancestral value at the root
as an ancestral shift on the root edge. Default to FALSE.
|
shifts_cex |
if |
shifts_bg |
if |
root_bg |
if |
shifts_adj |
the adj parameter for the shifts position on the edges. Default to 0 (beginning of the edge). |
root_adj |
if |
color_shifts_regimes |
whether to color each shift according to its regime (default to the same color of the edge it's on). Default to FALSE. |
regime_boxes |
whether to draw a box showing all the tips below a given.
The transparency of the border of the box is controlled by parameter
|
alpha_border |
if |
show.tip.label |
whether to show the tip labels. Default to FALSE. |
label_cex |
if |
label_offset |
if |
axis_cex |
cex for the label values of the plot. Default to 0.7. |
edge.width |
width of the edge. Default to 1. |
margin_plot |
vector giving the margin to around the plot.
Default to |
gray_scale |
if TRUE, the colors are replaced by a gray scale. Default to FALSE. |
... |
further arguments to be passed to |
See Also
simul_process
, plot.PhyloEM
,
params_BM
, params_OU