Learn R Programming

DirichletReg (version 0.3-0)

plot.DirichletRegData: Plot Dirichlet-Distributed Data

Description

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

Usage

## S3 method for class 'DirichletRegData':
%\method{lines(x, indep, groups, \ldots, cumul = FALSE, orig.scale = FALSE)es = NULL, col.scheme =
        c("dims", "entropy"), entropy.contours = FALSE,
        entropy.colors = FALSE, dim.labels, args.3d = list(rgl
        = TRUE, ...), rug = T, reset_par = TRUE, ...)

Arguments

x
data prepared with DR_data
dims
select two, three, or four Dimensions of your data x to plot
c.grid
display a grid?
ticks
display ticks?
colored
colored plot?
col.scheme
coloring scheme can be dims or entropy
entropy.contours
plot entropy contours in a ternary plot?
entropy.colors
.
rug
display a rug?
reset_par
reset graphical parameters after creating the plot?
ref.lines
.
dim.labels
a character vector giving labels for the dimensions/variables
args.3d
a named list of settings for 3-dimensional plots
...
further arguments

Examples

Run this code
# ternary plot of Arctic Lake data
plot(DR_data(ArcticLake[, 1]))
plot(DR_data(ArcticLake[, 1:3]))
plot(DR_data(Rocks[, 1:4]))

Run the code above in your browser using DataLab