# NOT RUN {
# Vanilla example
fake.pref <- runif(26)
class(fake.pref) <- "swissMrP"
# }
# NOT RUN {
map.MrP(fake.pref, main="This Map Shows Random Data",
legend.text1="Support for Anything")
# }
# NOT RUN {
## changing intervals
# }
# NOT RUN {
map.MrP(fake.pref,
threshold=c(0,0.3,0.45,0.48,0.49,0.5,0.51,0.52,0.55,0.7,1))
# }
# NOT RUN {
## no labels
# }
# NOT RUN {
map.MrP(fake.pref, main="This Map Shows Random Data",
legend.text1="Support for Anything", labels=FALSE)
# }
# NOT RUN {
## specify different colors and less groups
# }
# NOT RUN {
map.MrP(fake.pref, main="This Map Shows Random Data",
legend.text1="Support for Anything",
colors.m=c("skyblue","skyblue1","skyblue2","skyblue3",
"slateblue","slateblue1","slateblue2"))
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab