search for: ganges_subbasin_a2pre_sort

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

2010 May 16
1
problem with making multiple plots (geom_pointrange) in a loop (ggplot2)
...ing a for loop to select only certain entries in a dataframe. Here is my code: for(i in 1:length(ganges_subbasin[,1] )){ subbasin_select <- as.character(ganges_subbasin[i, 2]) #print(subbasin_select) subbasin_select <- as.character(ganges_subbasin[i, 2]) p <- ggplot(ganges_subbasin_a2pre_sort ,aes(x = Month, y = med, ymin = min, ymax = max, subset = CATCHMENT_ == subbasin_select)) + ylab("Precipitation (mm)\n") + opts(title = paste("Projected Precipitation 2030 - 2049 (Sub-Basin ", subbasin_select, ")\n", sep = "")) + scale_colour_grey() p +...