Re: [R] Arguments of a function

2011-03-18 Thread D Kelly O7;Day
You need to change your second line: range <- c(0.1, 0.5) runif(1, range[1], range[2]) -- View this message in context: http://r.789695.n4.nabble.com/Arguments-of-a-function-tp3387643p3388400.html Sent from the R help mailing list archive at Nabble.com. __

Re: [R] how to label lines

2011-03-12 Thread D Kelly O7;Day
Here is a working example that allows you to interactively label curves where you want: x <- c(200,210,230) y1 <- c(0.1, 0.13, 0.1) y2 <- c(0.11, 0.15,0.1) y3 <- c(0.12,0.17,0.12) df <- data.frame(x, y1,y2,y3) lab <- c("0.1 mg/l","0.2 mg/l","0.3 mg/l") plot(df$x, df$y1, type="l", col="blu

Re: [R] Calculate a mean for several months for several years

2011-02-22 Thread D Kelly O7;Day
Yes John My editing mistake. Thanks!! -- View this message in context: http://r.789695.n4.nabble.com/Calculate-a-mean-for-several-months-for-several-years-tp3318363p3319272.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-pro

Re: [R] Calculate a mean for several months for several years

2011-02-21 Thread D Kelly O7;Day
Pete The original question "I would like to calculate the average of the mean temperature for the summer months (Juli, August, September) for each of the 20 years" Your codes gives mean for each of the 3 months, not for the 20 summers. Here is a way to get the summer average for each of the 20

Re: [R] User input in R program

2011-01-21 Thread D Kelly O7;Day
Christian Have you looked at the http://www.stats.gla.ac.uk/~adrian/rpanel/ rpanel package? I have a post which shows an example of interactive input that allows user to adjust plot parameters. http://chartsgraphs.wordpress.com/2009/05/08/rpanel-package-adds-interactive-capabilites-to-r/ lin

Re: [R] Unexpected Gap in simple line plot

2011-01-20 Thread D Kelly O7;Day
Bill & Duncan Thanks for your quick reply. I would still be looking for days. Now I have to figure out how the bad data got into cts since I generate this file each month. -- View this message in context: http://r.789695.n4.nabble.com/Unexpected-Gap-in-simple-line-plot-tp3228853p3228920.htm

[R] Unexpected Gap in simple line plot

2011-01-20 Thread D Kelly O7;Day
ts, cts$yr_frac >1982 & cts$yr_frac <1983) small[,c(1,3)] The same problem occurs in the other data vectors (HAD, NOAA, RSS, UAH, etc) I have not been able to figure why I am getting the gap and how to show a continuous line through May, 1982 data points. Any suggestions? D Kelly O

Re: [R] Problem downloading and opening netcdf file

2010-11-17 Thread D Kelly O7;Day
Barry & Prof Ripley: Thanks!! mode="wb" solve the problem. BTW, it's he. D Kelly O'Day -- View this message in context: http://r.789695.n4.nabble.com/Problem-downloading-and-opening-netcdf-file-tp3046897p3047002.html Sent from the R help mailing li

[R] Problem downloading and opening netcdf file

2010-11-17 Thread D Kelly O7;Day
I am trying to download and open an on-line netcdf file. I'm using Windows XP and R 2.11.1 Here's my script library(ncdf) link <- "http://ibis.grdl.noaa.gov/SAT/SeaLevelRise/slr/slr_sla_gbl_free_all_66.nc"; dest <- "C:/temp/slr_sla_gbl_free_all_66.nc" download.file(url=link,destfile=d

Re: [R] Plots inside a Plot

2010-11-01 Thread D Kelly O7;Day
here's a second example using basic R graphics. I update this chart daily. http://processtrends.com/images/RClimate_UAH_Ch5_latest.png link http://r.789695.n4.nabble.com/file/n3022678/RClimate_UAH_Ch5_latest.png Here's what ?par says about par(fig) fig A numerical vector of the form c(x1

Re: [R] Plots inside a Plot

2010-11-01 Thread D Kelly O7;Day
Here's a quick example I posted on my blog. http://chartsgraphs.wordpress.com/2009/05/06/r-lets-you-put-chart-inside-chart/ link Hope it helps. http://r.789695.n4.nabble.com/file/n3022363/chart_inside_chart.png -- View this message in context: http://r.789695.n4.nabble.com/Plots-inside-a-Pl

Re: [R] Help request: highlighting R code on WordPress.com blogs

2010-09-09 Thread D Kelly O7;Day
Tali I am one of your estimated 29 Wordpress bloggers. Thanks for your RBloggers site!! I use Wordpress.com's site for my blog. I use a simple method to highlight my R script in Wordpress, example http://chartsgraphs.wordpress.com/2010/07/17/time-series-regression-of-temperature-anomaly-data-

Re: [R] Axes=F and plotting dual y axes

2010-07-28 Thread D Kelly O7;Day
Cedrick I used this script to produce a simple chart with no axes: series2 = c(1:50) series1 = rep(25:74) plot(series1, series2, main="Woo", col="red", xlab="", ylab="", axes=F, type="l") Works fine on Windows XP using R 2.11.1. -- View this message in context: http://r.789695.n4.n

Re: [R] R cannot access the web?

2010-05-13 Thread D Kelly O7;Day
I was also able to download the NYTimes page, using R2.10.1 on Windows XP. -- View this message in context: http://r.789695.n4.nabble.com/R-cannot-access-the-web-tp2215881p2216005.html Sent from the R help mailing list archive at Nabble.com. __ R-he

Re: [R] R and Wordpress

2010-02-26 Thread D Kelly O7;Day
I use Wordpress.com (free public version) and add my R scripts by using simple html wrap around my script. Here's an example post with R Script. http://chartsgraphs.wordpress.com/2009/02/05/r-script-to-automatically-chart-web-based-global-temperature-data/ link D Kelly O

Re: [R] iterative regressions, adding a new line of data each time

2010-02-01 Thread D Kelly O7;Day
I used rpanel() to do an interactive regression of a time series. My use was not as involved as yours, but it might give you an idea of how to approach. Here's a http://chartsgraphs.wordpress.com/2009/05/08/rpanel-package-adds-interactive-capabilites-to-r/ link to my blog post. -- View this m

Re: [R] plot type any symbols?

2010-01-14 Thread D Kelly O7;Day
Trafim Use the pch= argument within plot(). Try ?points to get details. Trafim wrote: > > Dear all, > > I have a question is there a possibility to plot points with different > symbols like stars, crosses? > I looked at different types for plot command and didn't find anything like > th

[R] Working with source file

2010-01-06 Thread D Kelly O7;Day
ke their own plots. I can't seem to find out any information on how to "look at" sourced R scripts. Suggestions on where to look will be appreciated. D Kelly O'Day http:chartsgraphs.wordpress.com -- View this message in context: http://n4.nabble.com/Working-with-source-

Re: [R] Using zoo() to aggregate daily data to monthly means

2009-12-22 Thread D Kelly O7;Day
Z Thanks. I new I was missing something! Kelly Achim Zeileis wrote: > > On Tue, 22 Dec 2009, D Kelly O'Day wrote: > >> >> I am trying to get monthly means for a daily data series using zoo(). I >> have >> found an odd problem, that seems to be cause

[R] Using zoo() to aggregate daily data to monthly means

2009-12-22 Thread D Kelly O7;Day
I am trying to get monthly means for a daily data series using zoo(). I have found an odd problem, that seems to be caused by zoo()'s handling of leap years. Here's my R script with 2 methods (freq=365, 366) for aggregating the daily data to monthly series: library(zoo) J_link <- "http://www.ij

Re: [R] Are there free R webinar recordings somewhere ?

2009-12-07 Thread D Kelly O7;Day
Tal I have a series of basic introduction tutorials for new R users at this link. http://processtrends.com/Learn_R_Toolkit.htm http://processtrends.com/Learn_R_Toolkit.htm These videos are geared to Excel users who want to learn about R and see it in action. D Kelly O'Day