Displaying 1 result from an estimated 1 matches for "primarydx".
Did you mean:
primarydc
2010 May 14
2
help color coding map in R
...r schemes
library(classInt)
plotclr <- brewer.pal(nclr,"PuRd")
class <- classIntervals(NatSTSummaryHigh.abi$STMean, nclr, style="fisher" )
colcode <- findColours(class, plotclr)
# Plot a multi-panel map of all the states, and colour
xyplot(y~x | NatSTSummaryHigh.abi$PrimaryDX, data = state.center,groups=names(attr(colcode, "table")),
main="High Cost States by Diagnosis ( > National Avg)",
xlim = xl, ylim = yl, scales = list(draw=FALSE),
aspect = "iso",
xlab = NULL, ylab = NULL,
strip = strip.custom(var.name="Diag...