Description Usage Arguments Value get_hist_mcsimilation_data get_dens_mcsimilation_data ggplot_mc_hist and ggplot_mc_dens Author(s) See Also
View source: R/get_hist_mcsimilation_data.R
Take an object of class mcSimulation
or a list of these and return
the simulated values such that, when converted into molten data frame, can be easily
understood by ggplot.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | get_dens_mcsimilation_data(
x,
colorQuantile = c("GRAY48", "YELLOW", "ORANGE", "DARK GREEN", "ORANGE1", "YELLOW1",
"GRAY49"),
colorProbability = c(1, 0.95, 0.75, 0.55, 0.45, 0.25, 0.05)
)
get_hist_mcsimilation_data(
x,
breaks = 100,
colorQuantile = c("GRAY48", "YELLOW", "ORANGE", "DARK GREEN", "ORANGE1", "YELLOW1",
"GRAY49"),
colorProbability = c(1, 0.95, 0.75, 0.55, 0.45, 0.25, 0.05)
)
|
x |
|
colorQuantile |
|
colorProbability |
|
breaks |
one of:
In the last three cases the number is a suggestion only; as the
breakpoints will be set to |
list: If x is a list object.
dataframe: If x is an mcSimulation object.
get_hist_mcsimilation_data, which specification are made for geom_bar
,
takes care of extracting the simulated values as histogram
from the mcSimulation
object.
get_dens_mcsimilation_data, which specification are made for geom_density
,
takes care of extracting the simulated values as kernel density
from the mcSimulation
object.
These are generics for which methods are defined for mcSimulation
object or a list of these.Internally, these methods rely on get_hist_mcsimilation_data and get_dens_mcsimilation_data
respectively to generate the data required for geom_bar
and geom_density
and hand over these data to ggplot.
Issoufou Liman
ggplot_mc_hist
get_dens_mcsimilation_data
mcSimulation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.