View source: R/micromapDefSets.r
micromapGSetDefaults | R Documentation |
The micromapGSetDefaults function generates a data.frame containing two lists: the colors and details list. Each list contains the operational parameters to instruct micromapST on how to physically construct a micromapST graphic.
The colors list contains 24 rgb colors:
The 12 basic colors are:
for the state maps in each group of 6 areas that make up one panel row. Currently the max is 5 areas per group. The 6th color is reserved for future use.
for the median state (in the middle)
for the cumulative hightlight color for the areas already presented in other panel rows.
for the when highlighting areas above and below the median.
for use to shade not referenced areas in the user data.
for use to shade not-active areas.
and a repeat of the 12 rgb colors with an alpha transparency value of 10%.
The details list contains the spacing, margins, text size, etc. information to guide the construction of the micromapST graphic. These lists may be modified by the user, but this is not recommended. See the micromapSTDefault description for more information on these lists.
micromapGSetDefaults()
The default colors in the colors list are: red, orange, green, greenish-blue, lavender and magenta for the area colors, black for the median state color, and light yellow for the cummulative hightlighting, vary pale red and green for highlight areas above and below the median, the lightest and lighter gray to shade not referenced and not-active areas on the map. The default values in the details list can be found in the micromapGDefaults documentation.
This function is primarily used internally by micromapST. However, if the user wants to see values of all of the internal variables or wants to make wholesale changes to the layout and operational changes to the colors and details list, this function can be used to create a copy of the full colors and details lists.
The return value is a variable equal to list(colors, details) where both colors and details are named lists.
micromapGDefaults
Jim Pearson, StatNet Consulting, LLC, Gaithersburg, MD
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.