star.ctrl {EffectStars2}R Documentation

Control function for effect stars.

Description

Control function to set graphical parameters for method effectstars.

Usage

star.ctrl(lwd.circle = 1, col.circle = "yellowgreen",
  lty.circle = "solid", col.fill = "yellowgreen", lwd.star = 1.5,
  cex.main = 1.5, cex.labels = 1, col.main = "black",
  col.labels = "black", col.star = "black", dist.labels = 1,
  font.labels = 1, radius = 1)

Arguments

lwd.circle

Line width of circle.

col.circle

Color of circle, possibly a vector with one value per covariate.

lty.circle

Line type of circle.

col.fill

Color to fill the circle, possibly a vector with one value per covariate.

lwd.star

Line width for effect star.

cex.main

Size of mains.

cex.labels

Size of labels.

col.main

Color of mains.

col.labels

Colors of labels. Can be a vector (one value/color per category) or a even matrix (one column per category, one row per star).

col.star

Color of effect star.

dist.labels

Tuning parameter for distance of labels from effect star. Default is 1, higher values increase the distance of the labels to effect stars. Can also be specified as a vector, containing one value per star.

font.labels

Font type of labels. Can be a vector (one value/color per category) or a even matrix (one column per category, one row per star).

radius

Radius for circle. Can also be specified as a vector, containing one value per star.

Author(s)

Gunther Schauberger
gunther.schauberger@tum.de

https://www.sg.tum.de/epidemiologie/team/schauberger/

References

Tutz, G. and Schauberger, G. (2013): Visualization of Categorical Response Models - from Data Glyphs to Parameter Glyphs, Journal of Computational and Graphical Statistics 22(1), 156–177.

Gerhard Tutz (2012): Regression for Categorical Data, Cambridge University Press

See Also

effectstars

Examples

## Not run: 
data(election) 
library(VGAM)

m_elect <- vglm(Partychoice ~ Gender + West + Age + Union + Highschool + Unemployment
+ Pol.Interest + Democracy + Religion, family = multinomial(), data = election)

ctrl <- star.ctrl(col.labels = c("black","red2","yellow2","green2","darkred"), 
col.star = "darkgray", col.fill = "lightblue", col.circle = "darkgray", 
cex.labels = 1.1)

effectstars(m_elect, control = ctrl)

## End(Not run)


[Package EffectStars2 version 0.1-3 Index]