[R] finding and describing missing data runs in a time series

2012-02-12 Thread Durant, James T. (ATSDR/DTEM/PRMSB)
Hi - I am trying to find and describe missing data in a time series. For instance, in the library openair, there is a data frame called mydata: library(openair) head(mydata) date ws wd nox no2 o3 pm10so2 co pm25 1 1998-01-01 00:00:00 0.60 280 285 39 1 29 4.7225 3.3725 NA 2

[R] ggplot2 - regression statistics how to display on plot

2011-11-10 Thread Durant, James T. (ATSDR/DTEM/PRMSB)
Hello - So I am trying to use ggplot2 to show a linear regression between two variables, but I want to also show the fit of the line on the graph as well. I am using ggplot2 for other graphics in what I am working on, so even though this would be a fairly easy thing to do in Excel, I would

[R] isotope superscripts ggplot2

2011-09-30 Thread Durant, James T. (ATSDR/DTEM/PRMSB)
Happy Friday fellow R users. I need some help - I am trying to make a graph using ggplot 2 of some lead isotope ratios. Normally, the isotope mass number appears as a superscript before the chemical symbol. However, I cannot figure out how to do this ggplot2's axis labels. The closest I have

[R] Chemical Names in Data Frames

2011-09-02 Thread Durant, James T. (ATSDR/DTEM/PRMSB)
Greetings - I am working on some data that contain chemical names with air concentrations, and I am creating a data frame with date/time and each chemical having its own column. However, these are organic chemicals (e.g. 1-butene, 2,3,4-trimethylbenzene etc). The package I am going to be using

[R] Chebyshev Inequality — MVUE

2011-07-10 Thread Durant, James T. (ATSDR/DTEM/PRMSB)
Hello, I was interested in trying to write an R script to calculate a UCL for a lognormal distribution using the Chebyshev Inequality — MVUE Approach (based on EPA’s guidance found in http://www.epa.gov/oswer/riskassessment/pdf/ucl.pdf). This looks like it should be straight forward, but I am

Re: [R] Chebyshev Inequality — MVUE

2011-07-10 Thread Durant, James T. (ATSDR/DTEM/PRMSB)
Winsemius [mailto:dwinsem...@comcast.net] Sent: Sunday, July 10, 2011 03:14 PM To: ted.hard...@wlandres.net ted.hard...@wlandres.net Cc: Durant, James T. (ATSDR/DTEM/PRMSB); r-help@r-project.org r-help@r-project.org Subject: Re: [R] Chebyshev Inequality — MVUE On Jul 10, 2011, at 2:49 PM, (Ted