Description Usage Arguments Examples
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/)
1 2 | iconArrayVis(mobj = NULL, data = NULL, group.colors = c("deepskyblue",
"orangered"), init.color = "lightgray", plot.title = "Icon Array")
|
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. |
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.