search for: addinglegend

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

2010 Apr 12
1
lattice garphs: combining multiple scatterplots and adding legend
Dear List members, its me again, fighting with lattice graphics. I am trying to plot a world map, add some points on different locations with different colors and add a legend, but did not succeed yet with the legend. Here is my code: library(fields) # Data for demonstration data_x = c(0,50,60) data_y = c(0,0,0) cols???= c(1,2,3) data(world.dat) #print map all=xyplot(world.dat$y? ~