plot.DirichletRegData: Plot Dirichlet-Distributed Data

Description Usage Arguments Author(s) Examples

View source: R/plot.DirichletRegData.R

Description

With this function you can plot Dirichlet-distributed data in 2, 3 and 4 dimensions.

Usage

1
2
3
4
5
## S3 method for class 'DirichletRegData'
plot(x, dims, ticks = TRUE, ref.lines = NULL, dim.labels, a2d = list(colored =
  TRUE, c.grid = TRUE, col.scheme = c("dims", "entropy"), entropy.contours =
  FALSE, entropy.colors = FALSE), a3d = list(rgl = TRUE, ...), rug = TRUE,
  reset_par = TRUE, ...)

Arguments

x

data prepared with DR_data

dims

select two, three, or four Dimensions of your data x to plot

ticks

display ticks?

ref.lines

.

dim.labels

a character vector giving labels for the dimensions/variables

a2d

a named list of settings for ternary plots (3 variables), see Details

a3d

a named list of settings for quaternary plots (4 variables), see Details

rug

display a rug for a one-dimensional plot (2 variables)

reset_par

reset graphical parameters of DR_data after creating a two-dimensional plot (2 variables), see Details

...

further graphical arguments as col, pch, cex, ...

Author(s)

Marco J. Maier

Examples

1
2
3
4
5
# plot of "Sand" in the Arctic Lake data set
plot(DR_data(ReadingSkills[, 1]), main="Reading Accuracy")

# ternary plot of Arctic Lake data
plot(DR_data(ArcticLake[, 1:3]), a2d = list(colored = FALSE))

Example output

Loading required package: Formula
Loading required package: rgl
Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl_init' failed, running with rgl.useNULL = TRUE 
3: .onUnload failed in unloadNamespace() for 'rgl', details:
  call: fun(...)
  error: object 'rgl_quit' not found 
only one variable in [0, 1] supplied - beta-distribution assumed.
check this assumption.
Warning in DR_data(ArcticLake[, 1:3]) :
  not all rows sum up to 1 => normalization forced

DirichletReg documentation built on May 18, 2021, 5:06 p.m.