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.
__
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
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
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
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
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
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
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
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
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
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
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-
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
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
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
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
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
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-
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
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
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
21 matches
Mail list logo