Learn R Programming

micromapST (version 1.0.1)

panelDesc: micromapST panel description data.frame structure

Description

The panelDesc data.frame provides the information required to process the stateFrame data and to generate the required linked micromap plot. It specifies where the data is in the stateFrame data.frame, the column types, labels, and reference values and text. Example panelDesc = data.frame( type=c("mapcum","id","dotconf","dotconf"), lab1=c("","","White Males","White Females"), lab2=c("","","Rate and 95% CI","Rate and 95% CI"), lab3=c("","","Deaths per 100,000","Deaths per 100,000"), col1=c(NA,NA,2,9), col2=c(NA,NA,4,11), col3=c(NA,NA,5,12), refVals=c(NA,NA,NA,wflungUS[,1]), refTexts=c(NA,NA,NA,"US Rate"), panelData=c("","","","") ) The panelDesc data.frame (or a similar data.frame variable) is the primary vehicle for defining how to reference the data in the stateFrame data.frame when creating the state linked micromap plot. micromapST supports up to 3 column labels (titles): lab1, lab2 and lab3. Generally lab3 is used to indicate the unit of measure at the bottom of the columns. Depending on the type of graphic selected for the column, 1 to 3 data values will be needed per state: col1, col2, and col3. The col1, col2 and col3 numeric vectors serve as indexes to columns in a data.frame passed to micromapST when it is called. If no index is required, 'NA' should be specified.

Usage

panelDesc

Arguments

Details

The panelDesc data.frame is used to describe the content of the micromapST plot to the function. It contains the index of the data in the stateFrame data.frame, the types of graphics to be used in each column, titles, column headers, reference values and labels, etc.

See Also

micromapST