plot_distribution_chart | R Documentation |
This function plots the posterior distribution for a state (or all states) in particular node, highlighting the confidence interval desired calculated using the highest posterior density (HPD).
plot_distribution_chart(map, nodes=NULL, trees=NULL, states=NULL, conf_level=95
, number_of_ticks=20, type='emr')
map |
A result of a map_posterior_distribution execution; |
nodes |
A vector containing the nodes to filter, or NULL to not filter; |
trees |
A vector containing the trees to filter, or NULL to not filter; |
states |
A vector containing the states to filter, or NULL to not filter; |
conf_level |
An integer representing the confidence level desired, ranging from 0 to 100. Defaults to 95 percent; |
number_of_ticks |
The number of intervals in the x axis. Defaults to 20; |
type |
|
This function returns a ggplot object that shows the plot when printed. The print itself can be changed as the pleased, using regular ggplot layers functions.
Diego Pasqualin dpasqualin@inf.ufpr.br
map_posterior_distribution
,
sfreemap
sm <- sfreemap(sfreemap.corals.trees, sfreemap.corals.tips, parallel=FALSE)
map <- map_posterior_distribution(sm[[1]], sm, parallel=FALSE)
p <- plot_distribution_chart(map, 160)
print(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.