iconArrayVis: Create an icon array.

Description Usage Arguments Examples

Description

iconArrayVis creates an interactive icon array. Allows for specification of a multinomial logit regression to estimate probability of each group based on a set of covariates. This concept is based on research by Zikmund-Fisher et. al. (http://www.iconarray.com/)

Usage

1
2
iconArrayVis(mobj = NULL, data = NULL, group.colors = c("deepskyblue",
  "orangered"), init.color = "lightgray", plot.title = "Icon Array")

Arguments

mobj

Result of multinomial logit regression. Defaults to NULL, meaning groups are manually specified.

colors

List of colors to use for each group. Should be length of levels of outcome or length of group.names.

Examples

1
2
3
4
5
6
7
# To create a simple icon array image
iconArrayVis()
# To display the results of a multinomial logit (quine data from MASS package)
library(MASS)
library (nnet) # contains function multinom
mobj <- multinom(Age~Eth+Sex+Lrn+Days, data=quine)
iconArrayVis(mobj, data=quine, colors=c("deepskyblue", "orangered"), plot.title="School Absenteeism")

prpatil/healthvis documentation built on May 26, 2019, 10:32 a.m.