Description Usage Arguments Details Value Author(s) References See Also Examples
This function is used for fast investigation of shape objects; standard visualization choices are made automatically; fast and easy-to-use but does not necessarily provide optimal visualization.
1 2 3 4 |
sp |
Shape object |
varname |
Variable name from the shape object sp to be visualized |
type |
String. Specifies visualization type. Options: "oneway", "twoway", "qualitative", "custom". See details. |
ncol |
Number of distinct colors shades |
at |
Color transition points |
palette |
Optional. Color palette. |
main |
Optional. Title text. |
colorkey |
Logical. Show color interpretation in a separate legend. |
lwd |
Optional. Line width for shape polygon borders. |
border.col |
Optional. Color for shape polygon borders. |
col.regions |
Optional. Specify color for the shape object regions manually. |
Visualization types include: oneway/sequential (color scale ranges from white to dark red, or custom color given with the palette argument); twoway/bipolar/diverging (color scale ranges from dark blue through white to dark red; or custom colors); discrete/qualitative (discrete color scale; the colors are used to visually separate regions); and "custom" (specify colors with the col.regions argument)
ggplot2 object
Leo Lahti sorvi-commits@lists.r-forge.r-project.org
See citation("sorvi")
1 | # PlotShape(sp, varname)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.