Last data update: 2014.03.03

R: Plot Dirichlet-Distributed Data
plot.DirichletRegDataR Documentation

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'
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

# 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))

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(DirichletReg)
Loading required package: Formula
Loading required package: rgl
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/DirichletReg/plot.DirichletRegData.Rd_%03d_medium.png", width=480, height=480)
> ### Name: plot.DirichletRegData
> ### Title: Plot Dirichlet-Distributed Data
> ### Aliases: plot.DirichletRegData lines.DirichletRegData
> ### Keywords: hplot
> 
> ### ** Examples
> 
> # plot of "Sand" in the Arctic Lake data set
> plot(DR_data(ReadingSkills[, 1]), main="Reading Accuracy")
only one variable in [0, 1] supplied - beta-distribution assumed.
check this assumption.
> 
> # ternary plot of Arctic Lake data
> plot(DR_data(ArcticLake[, 1:3]), a2d = list(colored = FALSE))
Warning in DR_data(ArcticLake[, 1:3]) :
  not all rows sum up to 1 => normalization forced
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>