View source: R/plotting-fxns.R
pic_stat_msig_plot | R Documentation |
This is a diagnostic plot for looking at the distribution of squared contrasts derived from a rescaled 'unit.tree' object.
pic_stat_msig_plot( x, xlab = "Squared contrasts", ylab = "Counts", col = NA, breaks = NA, las = 1, lwd = 2, ... )
x |
a |
xlab |
x-axis label. Defaults to "Squared contrasts". |
ylab |
y-axis label. Defaults to "Counts". |
col |
plot colours. The first colour is used for the histogram, the second designates the mean. If no argument supplied, uses default colours. |
breaks |
number of breaks for histogram. Defaults to the number of contrats/10. |
las |
plot parameter (see |
lwd |
plot parameter (see |
... |
aditional arguments to be passed to |
This function is just intended to be a quick diagnostic for looking
at the distribution of squared contrats. The mean value (the vertical line
in the plot) is equal to the value of pic_stat_msig
and is
the REML estimate of the Brownian motion rate parameter. It is a default
test statistic in calculate_pic_stat
.
If the model is adequate the mean should be close to 1.
This function can currently only take a single unit.tree (does not integrate across unit.trees)
make_unit_tree
, calculate_pic_stat
,
pic_stat_msig
## finch data data(finch) phy <- finch$phy data <- finch$data[,1] u <- make_unit_tree(phy, data=data) pic_stat_msig_plot(u)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.