Re: [R] creating an equivalent of r-help on r.stackexchange.com ? (was: Re: Should there be an R-beginners list?)

2014-02-08 Thread Liviu Andronic
On Sat, Feb 8, 2014 at 4:41 AM, Patrick Connolly p_conno...@slingshot.co.nz wrote: | Dear Don and Bert, | Allow me to address some of your concerns below. Which you do very clearly by positioning your responses underneath what you're commenting on. That doesn't seem to be possible on SE. In

[R] (no subject)

2014-02-08 Thread Ma Rw
Hai I'm working on a allatent profile in continuous data but I don't know what a directive. I know the special alatent class poLCA package but what package your latent profile thank you [[alternative HTML version deleted]] __

Re: [R] Trouble with pmvnorm?

2014-02-08 Thread peter dalgaard
You almost said it yourself: Your integrand doesn't vectorize. The direct culprit is the following: If x is a vector, what is lower=c(x,x,x,x)? A vector of length 4*length(x). And pmvnorm doesn't vectorize so it wouldn't help to have lower= as a matrix (e.g., cbind(x,x,x,x)) instead. A

[R] Plotting a loess line when the abcissa variable has numerous NA's

2014-02-08 Thread David Parkhurst
I have a situation in which I want to plot a variable Y against X, and then to add a loess line to that plot. My X variable is 366 elements long, and about 1/3 are NA's, scattered through the list. None of the corresponding Y's are NA's. Everything I’ve tried so far, by mimicking examples

Re: [R] Plotting a loess line when the abcissa variable has numerous NA's

2014-02-08 Thread David Winsemius
On Feb 8, 2014, at 12:28 PM, David Parkhurst wrote: I have a situation in which I want to plot a variable Y against X, and then to add a loess line to that plot. My X variable is 366 elements long, and about 1/3 are NA's, scattered through the list. None of the corresponding Y's are

Re: [R] Count observation based on hour

2014-02-08 Thread arun
Hi, Try: #using the same `data`  res1 - as.data.frame(table(with(dat,cut(Date,breaks=seq(as.POSIXct(2013-01-01 00:00:00),max(Date)+3600,by='1 hour') A.K. Hi A.K. Thank you very much! It worked!!  Just another quick follow-up question: res - as.data.frame(table(

[R] Output including listing and graphs.

2014-02-08 Thread John Sorkin
R 3.0.0 or RStudio 0.98.490 Windows 7 (or Linux Mint) Is there any easy way to run an R program and have it produce text output in a file along with any graphs that the code produces? I know I can run the program and paste the graphs into the output however doing this is rather time

Re: [R] Output including listing and graphs.

2014-02-08 Thread Jim Lemon
On 02/09/2014 11:58 AM, John Sorkin wrote: R 3.0.0 or RStudio 0.98.490 Windows 7 (or Linux Mint) Is there any easy way to run an R program and have it produce text output in a file along with any graphs that the code produces? I know I can run the program and paste the graphs into the output

Re: [R] Output including listing and graphs.

2014-02-08 Thread Duncan Murdoch
On 14-02-08 7:58 PM, John Sorkin wrote: R 3.0.0 or RStudio 0.98.490 Windows 7 (or Linux Mint) Is there any easy way to run an R program and have it produce text output in a file along with any graphs that the code produces? I know I can run the program and paste the graphs into the output

[R] Two x axes - top and bottom

2014-02-08 Thread Benjamin Ward (ENV)
Hi, fellow R users, I've been asked to make a plot with two datasets each with a different x axis, and it's been suggested one be at the top and the other at the bottom of the graph. I normally use ggplot2, and I know how to plot multiple datasets by simply + a new geom with a different data

[R] running Rstudio on public server using putty

2014-02-08 Thread Qike Li
Hi All, I am trying to set up Rstudio to let it run on my university's High Performance Computing services (HPC). I use putty to access HPC. Anyone knows if Rstudio can do that? If so, how can I set it up? Thanks, Qike [[alternative HTML version deleted]]

[R] subset of data frame

2014-02-08 Thread Yuanzhi Li
Hi, everyone I met a small problem when I want take a subset from a data frame. The data frame(x) looks like the followings(10 species with 3 measured traits): Species trait1trait2 trait3 sp1 sp1 ... sp2 sp2 ... sp10 sp10 ... It would be easy if we want trait values for most

[R] subset of data frame

2014-02-08 Thread Yuanzhi Li
Hi, everyone I met a small problem when I want take a subset from a data frame. The data frame(x) looks like the followings(10 species with 3 measured traits): Species trait1trait2 trait3 sp1 sp1 ... sp2 sp2 ... sp10 sp10 ... It would be easy if we want trait values for most

Re: [R] Output including listing and graphs.

2014-02-08 Thread Greg Snow
As previously mentioned, the knitr package and related work well if you have a script that you want to run. If you want a basic R script without worrying much about markup then I suggest looking at the spin and stitch functions in the knitr packge. If on the other hand you do not have a script

Re: [R] Two x axes - top and bottom

2014-02-08 Thread Jim Lemon
On 02/09/2014 09:57 AM, Benjamin Ward (ENV) wrote: Hi, fellow R users, I've been asked to make a plot with two datasets each with a different x axis, and it's been suggested one be at the top and the other at the bottom of the graph. I normally use ggplot2, and I know how to plot multiple