[R] Fixed effects regression and robust regression

2015-05-19 Thread michael westphal via R-help
Hello: I am using R 3.0.2.   I have panel data on countries' renewable energy net generation (and installed capacity) over time.  I am regressing these dependent variables on various socioeconomic variables, as well as binary policy variables.  I have have done basic OLS, but I wanted to explore

[R] problem with making multiple plots (geom_pointrange) in a loop (ggplot2)

2010-05-15 Thread michael westphal
Hello: I am using R 2.10.1 I am trying to make multiple scatter plots with ggplot2, using 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_sele

[R] sorting rows of dataframe

2010-05-11 Thread michael westphal
Hello: I have a dataframe, where the first column in a month: Month CATCHMENT_ medmin max 1Apr Alknda01 71.68080 11.9406600 196.2753 2Apr Alknda02 69.44580 12.1065600 196.2753 3Apr ArialKhan 39.89310 5.8598700 175.4433 4AprArjun01 4.79652 0.0093336

[R] ggplot2 and geom_pointrange

2010-05-10 Thread michael westphal
Hello: I am using the ggplot2 package on R 2.10.1. I am plotting points using geom_pointrange. Is there a way to overlay hashmarks on the points, specifically the median and the min and max of the range? Cheers, Michael [[alternative HTML version deleted]]

[R] changing parameters of the box and whisker plot

2010-05-09 Thread michael westphal
Hello: I am plotting some data using the box and whisker plot. However, I only want to plot the median, max and min, as I only have these values and not the quartile values. It seems R arbitrarily constructs the box margins to be halfway between the median and the max/min. How do I make the