search for: usaclass

Displaying 1 result from an estimated 1 matches for "usaclass".

Did you mean: subclass
2010 Nov 19
1
Color Alaska in USA map
...n I tried to color the USA map with different colors. The following is my data (I only used the second column of data): alaska, 1, 2 Hawaii, 0, 0 USA, 5, 5 And here is my code: library("latticeExtra") library("mapproj") state<-read.table("C:\\usaclass.txt",sep=",") state range<-with(state,range(state[1:3,3])) range nbreaks=6 breaks<-do.breaks(range,nbreaks) StateName<-state[1:3,1] StateName mapplot(StateName~state[1:3,3],data=state,breaks=breaks, map=map("world", c("USA", "Hawaii"), fill=TRUE...