[R] Help plotting recurrence matrix

2018-10-04 Thread Lisa Handke
Hi everyone, I am trying to plot a recurrence matrix (package: nonlinearTseries). This is my command, which gives the plot as found in the attached image (example 1): Team1 <- read.delim("Team1.txt", header =TRUE) Team1_plot <- rqa(time.series = Team1$Kat5, embedding.dim = 1, time.lag

Re: [R] Bug : Autocorrelation in sample drawn from stats::rnorm (hmh)

2018-10-04 Thread William Bell via R-help
Hi Hugo, I've been able to replicate your bug, including for other distributions (runif, rexp, rgamma, etc) which shouldn't be surprising since they're probably all drawing from the same pseudo-random number generator.  Interestingly, it does not seem to depend on the choice of seed, I am not su

Re: [R] heatmap.2, adding a legend at bottom

2018-10-04 Thread Ding, Yuan Chun
Hi David, Thank you so much!! Problem resolved. xpd=TRUE does the trick to put a legend outside. Ding -Original Message- From: David L Carlson [mailto:dcarl...@tamu.edu] Sent: Thursday, October 04, 2018 12:09 PM To: Ding, Yuan Chun; r-help@r-project.org Subject: RE: heatmap.2, adding

Re: [R] heatmap.2, adding a legend at bottom

2018-10-04 Thread David L Carlson
It will take a bit of trial and error. Use this example as a guide. You will probably have to set the y coordinate to a negative value and include xpd=TRUE: > data(mtcars) > x <- as.matrix(mtcars) > heatmap.2(x) > legend(.5, -.1, "Legend", xpd=TRUE) Davi

Re: [R] heatmap.2, adding a legend at bottom

2018-10-04 Thread Ding, Yuan Chun
Hi All, I generated the attached heatmap using the following R code and attached testfile. I tried to move the legend to the bottom, Can anyone help me? I have played for 3 hours and can not resolve the problem. I realized that in the last email, I forgot to include the "Group" variable for

[R] heatmap.2, adding a legend at bottom

2018-10-04 Thread Ding, Yuan Chun
Hi All, I generated the attached heatmap using the following R code and attached testfile. I tried to move the legend to the bottom, Can anyone help me? I have play for 3 hours and can not resolve the problem. Thank you, Ding --

Re: [R] savehistory()

2018-10-04 Thread Sarah Goslee
Hi Suy, It is very important to specify what OS and version of R you're using. But I'm going to make a wild guess that you're using Mac, and that you didn't read the documentation for savehistory() carefully. "R.app, the console on macOS, has a separate and largely incompatible history mechanism

[R] savehistory()

2018-10-04 Thread Nancy S
Hi, I just start to learn R, but I have problem to use "savehistory()" When I run, it pops out "Error in .External2(C_savehistory, file) : 'savehistory' is not currently implemented". I searched a little bit online, but I still cannot figure out how to fix that. thanks, Suy [[alterna

Re: [R] R - Reading a horizontally arranged csv file, replacing values and saving again

2018-10-04 Thread Manoranjan Muthusamy
That's exactly what I was looking for. Never used readLines before which is why I was struggling. Many thanks. I asked the same question in Stack Overflow as well. But no answers yet. I will post the link to your answer. Thanks again. On Wed, Oct 3, 2018 at 5:51 PM William Dunlap wrote: > Using

Re: [R] Bug : Autocorrelation in sample drawn from stats::rnorm

2018-10-04 Thread Annaert Jan
Did you take into account that the sample serial correlation coefficient has a bias of approximately -1/T (with T the sample size)? Its variance is approximately 1/T. Jan Annaert -Original Message- From: R-help On Behalf Of hmh Sent: donderdag 4 oktober 2018 12:09 To: R Subject: [R]

[R] Bug : Autocorrelation in sample drawn from stats::rnorm

2018-10-04 Thread hmh
Hi, I just noticed the following bug: When we draw a random sample using the function stats::rnorm, there should be not auto-correlation in the sample. But their is some auto-correlation _when the sample that is drawn is small_. I describe the problem using two functions: DistributionAutoc