[R] How to make a boxplot with exclusion of certain groups

2010-04-19 Thread Josef . Kardos
This seems like a simple thing, but I have been stuck for some time. My data has 2 columns. Column 1 is the value, and column 2 is the Site where data was collected. Column 2 contains 7 different Sites (i.e. groups). I am only interested in showing 3 groups on a single boxplot. I have trie

[R] any feedback on XL Solutions Courses for R?

2010-04-29 Thread Josef . Kardos
About a week ago, XL Solutions Corporation posted to this list with a solicitation for course offerings in R. I looked at their site, and many courses do look interesting. Can anyone provide feedback on the quality of their courses? [[alternative HTML version deleted]]

[R] plotting time series with data gap using type line- but do not want to connect gap with line

2009-05-28 Thread Josef . Kardos
I have a time series of about 1500 measurements. There are sporadic data gaps. I would like to plot the time series with type "line". I only want a line to connect the periods with data; I don't want a line to connect the points across a data gap. Is there a function or recommended method t

[R] Problem loading rJava

2009-05-29 Thread Josef . Kardos
I am running R on Windows XP I first tried to install rJava and got this message utils:::menuInstallLocal() package 'rJava' successfully unpacked and MD5 sums checked updating HTML package descriptions then i tried this require(rJava) Loading required package: rJava Error in if (!nchar(javahome)

[R] problem with axis alignment when plotting 2 time series on same graph

2009-06-17 Thread Josef . Kardos
I am trying to plot 2 time series on the same graph. For example, X1 is the vector of dates and times, its class is POSIXt. Y1 is an environmental parameter, e.g. salinity. X2 is a second vector of dates and times, also of class POSIXt.X2 has a different length than X1, but they have the e

[R] disregard email about plotting 2 time series

2009-06-17 Thread Josef . Kardos
I found the problem. the date range was not exactly overlapping as i had thought. If the range of the 2 time series exactly overlap, then the two graphs overlay correctly. Unless there is another method or package that fixes this, it seems that if the 2 time series have non-matching ranges (e

[R] how to make a barplot similar to Excel’s “clustered column chart”.

2010-06-14 Thread Josef . Kardos
I have a matrix with 12 rows (one for each month), 2 columns (baseflow, runoff). I would like to make a barplot similar to Excel’s “clustered column chart”. Here is my matrix ‘x’ 8.25875413.300710 10.180953 10.760465 11.012184 13.954887 10.910870 13.839839

[R] moving average with gaps in time series

2010-12-16 Thread Josef . Kardos
I have a time series with interval of 2.5 minutes, or 24 observations per hour. I am trying to find a 1 hr moving average, looking backward, so that moving average at n = mean(n-23 : n) The time series has about 1.5 million rows, with occasional gaps due to poor data quality. I only want to t

Re: [R] moving average with gaps in time series

2010-12-20 Thread Josef . Kardos
Thank you for the suggestion Jannis. I ended up using the function 'running' in package gregmisc. 'rollyapply' was not able to process all the data on my computer. Happy holidays to you and the R community Jannis 12/16/2010 06:56 PM To josef.kar...@phila.gov cc r-help@r-project.org Subje

[R] basic question about t-test with adjusted p value

2010-08-07 Thread Josef . Kardos
I have read the R manual and help archives, sorry but I'm still stuck. How would I do a t-test with an adjusted p-value? Suppose that I use t.test ( ) , with the function argument alternative = "two.sided", and data such that degrees of freedom = 20. The function calculates a t-statistic of

[R] how to represent error bar in a plot legend?

2010-09-01 Thread Josef . Kardos
I have a simple barplot of 4 mean values, each mean value has an associated 95% confidence interval drawn on the plot as an error bar. I want to make a legend on the plot that uses the error bar symbol, and explains "95% C.I." How do I show the error bar symbol in the legend? I could not find

Re: [R] how to represent error bar in a plot legend?

2010-09-02 Thread Josef . Kardos
I think I found a simple solution, although it requires some tinkering to find the x,y coordinates of the plot region to place the text... barplot ( ) text(x= 2.9, y = 0.43, srt=90, labels = "H", cex = 1.5, col="blue") #srt rotates the "H" character, so that it resembles an error bar text(x=3.5