plot,list-method | R Documentation |
This function extract the values of mu and the score values and a facet plot with one facet per score. If the input argument is a list, the different estimators will be displayed in the same facets, differentiated by color.
## S4 method for signature 'list'
plot(x, y, ...)
x |
an output object from evaluate_estimator ( |
y |
unused. |
... |
additional arguments handed down to ggplot. |
a ggplot
object visualizing the score values.
score_result1 <- evaluate_estimator(
MSE(),
estimator = SampleMean(),
data_distribution = Normal(FALSE),
design = get_example_design(),
mu=seq(-.75, 1.32, 0.03),
sigma=1)
# Plotting the result of evaluate_estimator
plot(score_result1)
score_result2 <- evaluate_estimator(
MSE(),
estimator = AdaptivelyWeightedSampleMean(w1 = 0.8),
data_distribution = Normal(FALSE),
design = get_example_design(),
mu=seq(-.75, 1.32, 0.03),
sigma=1)
# Plotting a list of different score results
plot(c(score_result1, score_result2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.