| plot_small_metrics | R Documentation | 
This function provides an easy way to illustrate the output of
small_metrics(), using the ggplot2 package. A grid of line charts is
created for each metric and sample size. Each estimator is plotted with a
different color and linetype. The plot can be saved in pdf format.
plot_small_metrics(
  x,
  colors = NULL,
  title = NULL,
  save = FALSE,
  path = NULL,
  name = "myplot.pdf",
  width = 15,
  height = 8
)
| x | A data.frame. The result of  | 
| colors | character. The colors to be used in the plot. | 
| title | character. The plot title. | 
| save | logical. Should the plot be saved? | 
| path | A path to the directory in which the plot will be saved. | 
| name | character. The name of the output pdf file. | 
| width | numeric. The plot width in inches. | 
| height | numeric. The plot height in inches. | 
The plot is returned invisibly in the form of a ggplot object.
small_metrics, large_metrics, plot_large_metrics
D <- Beta(shape1 = 1, shape2 = 2)
prm <- list(name = "shape1",
            pos = NULL,
            val = seq(0.5, 2, by = 0.5))
x <- small_metrics(D, prm,
                   est = c("mle", "me", "same"),
                   obs = c(20, 50),
                   sam = 1e2,
                   seed = 1)
plot_small_metrics(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.