I'm using spmap to plot temperatures taken at different coordinates as points on a map of New York. The temperature is indicated by color. The following command accomplishes this.
spmap using "nycoord", id(id) point(data(temp_data) by(temp) xcoord(longitude) ycoord(latitude) fcolor(Rainbow) legenda(on))
My issue is that I'd like to make four graphs, one for each season, and have a consistent color scale for the points among the four graphs. I've split my data so that there is a variable for each season (spring_temp, summer_temp, etc). When I plot for summer:
spmap using "nycoord", id(id) point(data(temp_data) by(summer_temp) xcoord(longitude) ycoord(latitude) fcolor(Rainbow) legenda(on))
the color scales to the max and min summer temperature, and when I plot for winter it scales to the max and min winter temperature. Is there any way to set a max and min for all 4 graphs so that the color scale is consistent?
spmap using "nycoord", id(id) point(data(temp_data) by(temp) xcoord(longitude) ycoord(latitude) fcolor(Rainbow) legenda(on))
My issue is that I'd like to make four graphs, one for each season, and have a consistent color scale for the points among the four graphs. I've split my data so that there is a variable for each season (spring_temp, summer_temp, etc). When I plot for summer:
spmap using "nycoord", id(id) point(data(temp_data) by(summer_temp) xcoord(longitude) ycoord(latitude) fcolor(Rainbow) legenda(on))
the color scales to the max and min summer temperature, and when I plot for winter it scales to the max and min winter temperature. Is there any way to set a max and min for all 4 graphs so that the color scale is consistent?
Comment