Re: [R] R plot split screen in uneven panels

2018-12-12 Thread Franklin Bretschneider
contained, reproducible code. Screen parrts shoeld be fractions (0 ...1), not percentages. And bottom first, so ... m = matrix(c(0,20,0,40, 20,60,0,40)/100, byrow=T, ncol=4) ... will work. Success and Best regards, Franklin --- Franklin Bretschneider Dept of Biology Utrecht University brets...

Re: [R] Identify does sort the locations

2018-02-15 Thread Franklin Bretschneider
Hi Samuel GRANJEAUD, Isn't this loop more simple to retain the click-order: result = numeric(n) for (i in 1:n) { id = identify(x, y, n=1) result[i] = id } Hope this helps, Best regards, Franklin Bretschneider Dept of Biology Utrecht University brets...@xs4all.nl

Re: [R] Override/Insert (Change) a value (default value) inside a function

2017-03-11 Thread Franklin Bretschneider
work . > But in this situation how can i solve the problem ? > That's where the three-dot argument is for. See "Introduction to R", paragraph 10.4 The ‘…’ argument. Succes and best regards, Frank --- Franklin Bretschneider Dept of Biology Utrecht University brets...

Re: [R] Euler & Runge-Kutta

2016-11-07 Thread Franklin Bretschneider
far better than the simple Euler method, and also better than Runge & Kutta. Angels, or very nice people, implemented solving methods using the lsoda into R. Download the package "deSolve" and the world of numerical solutions is at your feet. Succes, Franklin - Fran

Re: [R] Same code on Mac?

2016-09-01 Thread Franklin Bretschneider
outine, reproduced below. This might help to prevent problems with simple graphics demos, and can no doubt be extended to other commands. Success, and Best regards, Franklin Bretschneider Dept of Biology Utrecht University brets...@xs4all.nl # function PIgraph.r # Platform-Independent gra

Re: [R] as(, "numeric") vs as.numeric()

2016-02-01 Thread Franklin Bretschneider
ed cheap, whereas as.numeric() actually means: as.double. The "numeric" in the second line is an unused argument. Best regards, Frank --- Franklin Bretschneider Dept of Biology Utrecht University brets...@xs4all.nl __ R-help@r-project.org

Re: [R] R editor for Mac

2016-01-20 Thread Franklin Bretschneider
g and bracket balancing. And one can run only one or a few lines from a script at wish. I couldn't wish myself more. Success and best wishes, Frank -- Franklin Bretschneider Dept of Biology Utrecht University brets...@xs4all.nl __ R-help@r-project.org

Re: [R] Help request from Ph.D. Students

2016-01-11 Thread Franklin Bretschneider
lf (from simple first-order to higher-order butterworth etc). This package is intended to filter (electrical) signals, but might be used for any time series. In addition, there are several packages for the analysis of seasonal data. You might search CRAN for t

Re: [R] Problems trying to generate a prime factor vector

2015-12-03 Thread Franklin Bretschneider
rary(gmp) > But why writing one? Such a function is already in gmp: factorize(n), and it works with fairly large numbers: >library(gmp) >factorize(12345678987654321) Big Integer ('bigz') object of length 13: [1] 2 2 2 2 5 7 11 73 101 109 109 137 167 Success, Frank --

Re: [R] [FORGED] Re: How to correct documentation?

2015-10-25 Thread Franklin Bretschneider
a dimensioned number by the dimension leaves the bare number, which is what the axis shows. So in the case of the OP the legend should read: "weight/1000lb". Thus, 2 lb/1000lb = 20, which is what the axis shows. Best, Frank ---- Franklin Bretschneider Dept of Biology Utrecht

Re: [R] Command to input a variable value in real time

2015-10-12 Thread Franklin Bretschneider
Read a Line from the Terminal > > Description > > readline reads a line from the terminal (in interactive use). > > Usage > > readline(prompt = "") > > Arguments > > prompt > the string printed when prompting the user for input. Should us

Re: [R] Opposite color in R

2015-07-26 Thread Franklin Bretschneider
, greens, blues, maxColorValue = 255), asp=1, axes=FALSE, xlab='', ylab='') points(x,y,pch=0, cex=8, col=black) # arrows connect the complementary colours arrows(0,0, 0.7*x, 0.7*y, length = 0.25, col = grey) Hope this helps; Best wishes, Frank -- Franklin Bretschneider Dept of Biology

Re: [R] Cross correlation between two time series over nested time periods?

2015-05-14 Thread Franklin Bretschneider
, partial), plot = TRUE, na.action = na.fail, demean = TRUE, ...) ccf(x, y, lag.max = NULL, type = c(correlation, covariance), plot = TRUE, na.action = na.fail, ...) See further: ?ccf Succes and Best wishes, Frank --- Franklin Bretschneider Dept of Biology Utrecht University brets

Re: [R] A problem with string handling to make a time duration

2015-05-05 Thread Franklin Bretschneider
and Best regards, Frank -- Franklin Bretschneider Dept of Biology Utrecht University brets...@xs4all.nl __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

Re: [R] [R-SIG-Mac] Unsubscribe from the list

2015-05-04 Thread Franklin Bretschneider
. It is: __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help Succes, Frank --- Franklin Bretschneider Dept of Biology Utrecht University brets...@xs4all.nl __ R-help@r-project.org mailing

Re: [R] FFT Normalization Documentation

2015-02-03 Thread Franklin Bretschneider
. These values must indeed be regarded with caution, since with real-world signals the energy will most often be spread among several spectral lines. Windowing (Hann, Hanning, Blackman etc.) then improves the spectrum, but that's a different story. Best wishes, Frank --- Franklin Bretschneider

Re: [R] FFT Normalization Documentation

2015-02-02 Thread Franklin Bretschneider
. vector plot(f,abs(YY), type='h') It would be a good idea to put such an example in the help pages indeed. The short example given in the manual isn't of much help for the usual (periodic!) time signals. Hoping this helps, I remain With best wishes, Frank Franklin

Re: [R] help with looping a specific code

2015-01-07 Thread Franklin Bretschneider
with it # view or save the results # } Maybe you can adapt this to your problem. Success and Best wishes, Franklin Bretschneider Dept of Biology Utrecht University brets...@xs4all.nl __ R-help@r-project.org mailing list

Re: [R] quartz() and windows()

2014-06-28 Thread Franklin Bretschneider
Dear Megersa , Which version of R is used for quartz function please? Quartz is the Apple Mac graphics window (device). On Windows use ... windows() Best wishes, Franklin Bretschneider Dept of Biology Utrecht University brets...@xs4all.nl

Re: [R] par(mfrow)

2014-04-04 Thread Franklin Bretschneider
you give me an help? Thank you very much, But that's correct, if you don't plot something afterwards. Try plotting 8 x-y graphs, then you'll see that 8 small plot will appear (unless the margins will prove to be too large). Good luck, Franklin Bretschneider Dept of Biology Utrecht

Re: [R] [R-SIG-Mac] upgrade to Mavericks

2014-03-28 Thread Franklin Bretschneider
last december, and immediately put Mavericks on it. Since then, I'm running R (3.0.x) without any problems (as far as I remember). So it seems safe to upgrade (as to R; other software, such as Filemaker pro, might be incompatible, so read the forums). Best regards, Frank -- Franklin

Re: [R] Problem of ! operator

2014-03-28 Thread Franklin Bretschneider
. This line is wrong: if !(all(esn==x)) stop(x not ordered) Try again with ! after ( (so if (!something)... And if there prove to be more problems, scrutinize your code (check, re-check and double-check). Best regards, Frank -- Franklin Bretschneider Dept of Biology Utrecht University

Re: [R] How to fix the warning message the condition has length 1 and only the first element will be used?

2014-03-19 Thread Franklin Bretschneider
(), that's for vectors. If is intended for single elements only. Best wishes, Franklin - Franklin Bretschneider Dept of Biology Utrecht University brets...@xs4all.nl __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] tip: large plots

2011-11-18 Thread Franklin Bretschneider
0.096 20.763 [1] symbol# 4 user system elapsed 23.534 0.098 23.542 It seems that even-numbered symbols are plotted faster than the odd ones By the way, I learn a lot about R programming by just following r-help! Best regards, Franklin Bretschneider -- Dept Biologie Kruytgebouw W711