plot.sgd: Plot for Single Gaussian Data

Description Usage Arguments Value Examples

Description

Plot for Single Gaussian Data

Usage

1
2
## S3 method for class 'sgd'
plot(x, scale = 3L, centered = FALSE, add_mean = FALSE)

Arguments

x

An object of class sgd.

scale

An integer that defines the range of x values for plotting as a multiple of the maximum observed standard deviation (default: 3L).

centered

A boolean specifying whether individual densities should be centered prior to plotting (default: FALSE).

Value

Invisibly returns the input object.

Examples

1
2
3
4
5
6
7
x <- sgd(
  c(mean =  0, precision = 1  ),
  c(mean =  3, precision = 0.5),
  c(mean = -1, precision = 2  )
)
plot(x, centered = FALSE)
plot(x, centered = TRUE, xlab = "values")

astamm/game documentation built on June 5, 2019, 8:53 a.m.