Re: [R] about installing smwrGraphs package

2017-07-23 Thread lily li
It is working now. I don't know where's the problem. thanks for your help. On Sun, Jul 23, 2017 at 12:33 PM, peter dalgaard wrote: > > > On 23 Jul 2017, at 18:31 , Uwe Ligges > wrote: > > > > > > > > On 23.07.2017 05:28, lily li wrote: > >> Hi R users, > >> I'm trying to install the package, bu

Re: [R] axis() after image.plot() does not work except if points() is inserted between

2017-07-23 Thread Jim Lemon
Hi marc, Try: par("usr") before and after the call to points and see if it changes. Jim On Sat, Jul 22, 2017 at 12:05 AM, Marc Girondot via R-help wrote: > It is known (several discussions on internet) that axis() cannot be used > after fields:::image.plot() (axis() shows nothing). > > Howeve

Re: [R] R: How to multiplying y-axis ticks value by 100?

2017-07-23 Thread Jim Lemon
Hi Nic, Have a look at axis.mult in the plotrix package. Jim On Sun, Jul 23, 2017 at 12:46 PM, iPad via R-help wrote: > R: how multiplying y-axis ticks value by 100 (without put the % symbol next > to the number) here: > plot (CI.overall, curvlab=c("Discharge", "Death"), xlab="Days", las=1) >

Re: [R] [FORGED] Re: par(mfrow) for heatmap plots

2017-07-23 Thread Paul Murrell
Hi If you are really wedded to heatmap(), you could also use 'gridGraphics', something like this ... library(gridGraphics) grid.newpage() pushViewport(viewport(0, .5, .5, .5, just=c("left", "bottom"))) grid.echo(function() { heatmap(test) }, newpage=FALSE) popViewport() pushViewport(viewport(.

Re: [R] matching element of a vector to i-2nd element

2017-07-23 Thread Davide Piffer
Thanks a lot, Herve'. This worked! On 23 July 2017 at 22:19, Hervé Pagès wrote: > Hi, > > On 07/23/2017 11:43 AM, Davide Piffer wrote: >> >> I have a df with a vector v. For each element of the vector, I want to >> know whether the i-2nd element is the same as the ith element. For >> example: >>

Re: [R] matching element of a vector to i-2nd element

2017-07-23 Thread Jeff Newmiller
You can compare the elements that make sense to compare, and fill in the ones that don't make sense to compare yourself using the c function. Hint: no looping or if function are necessary. v[ seq( 2, length( v ) ] == v[ seq.int( length( v ) - 2 ) ] -- Sent from my phone. Please excuse my bre

Re: [R] I have been unable to run R from within QGIS on my Mac

2017-07-23 Thread Jeff Newmiller
This is not the QGIS (whatever that is) support forum. Perhaps you should return to basics and confirm that you have installed R and can start R yourself, without asking QGIS to do it. If you can do that, perhaps you should "click here" as the error message suggests. If you can start R yourself

Re: [R] matching element of a vector to i-2nd element

2017-07-23 Thread Hervé Pagès
Hi, On 07/23/2017 11:43 AM, Davide Piffer wrote: I have a df with a vector v. For each element of the vector, I want to know whether the i-2nd element is the same as the ith element. For example: given v=c(A,C,D,C) the result should be: FALSE,FALSE,FALSE,TRUE. I attempted something using indexi

Re: [R] cannot use package RcmdrPlugin.plotByGroup

2017-07-23 Thread Bert Gunter
On Sun, Jul 23, 2017 at 8:28 AM, Lu Wei wrote: > On 2017-7-23 20:41, Fox, John wrote:> ... >> The Rcmdr uses the qqPlot() function in the car package. In the next >> version of the car package, qqPlot() will be able to plot by groups, >> and when that happens, I'll incorporate the feature in the R

Re: [R] matching element of a vector to i-2nd element

2017-07-23 Thread Davide Piffer
No homework. Just a genuine question On 23 July 2017 at 22:00, Bert Gunter wrote: > Homework?? There is a no homework policy on this list. > > Cheers, > Bert > Bert Gunter > > "The trouble with having an open mind is that people keep coming along > and sticking things into it." > -- Opus (aka Ber

Re: [R] matching element of a vector to i-2nd element

2017-07-23 Thread Bert Gunter
Homework?? There is a no homework policy on this list. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Sun, Jul 23, 2017 at 11:43 AM, Davide Piffer

Re: [R] cannot use package RcmdrPlugin.plotByGroup

2017-07-23 Thread Lu Wei
On 2017-7-23 20:41, Fox, John wrote:> ... > The Rcmdr uses the qqPlot() function in the car package. In the next > version of the car package, qqPlot() will be able to plot by groups, > and when that happens, I'll incorporate the feature in the Rcmdr. > > More generally, however, if you learn to w

[R] I have been unable to run R from within QGIS on my Mac

2017-07-23 Thread Sagar Dhiman
I have tried to run R from within QGIS, But it show error "Missing dependency.This algorithm cannot be run :-( This algorithm requires R to be run.Unfortunately, it seems that R is not installedin your system, or it is not correctly configured to be used from QGIS Click here to know more about how

[R] matching element of a vector to i-2nd element

2017-07-23 Thread Davide Piffer
I have a df with a vector v. For each element of the vector, I want to know whether the i-2nd element is the same as the ith element. For example: given v=c(A,C,D,C) the result should be: FALSE,FALSE,FALSE,TRUE. I attempted something using indexing in a for loop such as (bad, incorrect example):

Re: [R] about installing smwrGraphs package

2017-07-23 Thread peter dalgaard
> On 23 Jul 2017, at 18:31 , Uwe Ligges wrote: > > > > On 23.07.2017 05:28, lily li wrote: >> Hi R users, >> I'm trying to install the package, but got the error and don't know how to >> fix it. Can anyone help me? Thanks very much. >> install.packages("smwrGraphs", repos=c("http://owi.usgs.go

Re: [R] about installing smwrGraphs package

2017-07-23 Thread Thomas Adams
Lily, This: https://cran.r-project.org/web/packages/githubinstall/vignettes/githubinstall.html will probably be useful to you. Best, Tom On Sun, Jul 23, 2017 at 12:31 PM, Uwe Ligges < lig...@statistik.tu-dortmund.de> wrote: > > > On 23.07.2017 05:28, lily li wrote: > >> Hi R users, >> >> I'm tr

Re: [R] about installing smwrGraphs package

2017-07-23 Thread Uwe Ligges
On 23.07.2017 05:28, lily li wrote: Hi R users, I'm trying to install the package, but got the error and don't know how to fix it. Can anyone help me? Thanks very much. install.packages("smwrGraphs", repos=c("http://owi.usgs.gov/R","; I guess "http://owi.usgs.gov/R"; does not provide standa

Re: [R] BayesianTools update prior

2017-07-23 Thread Bert Gunter
If you fail to get a satisfactory reply here because this is a specialized package, you should probably contact the maintainer (see ?maintainer), who may not monitor this list. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things in

[R] BayesianTools update prior

2017-07-23 Thread Gavan McGrath
Hi, Using the example in ?VSEM in the package BayesianTools I'm attempting to iteratively update the prior but find the plotTimeSeriesResults produces the following errors when I extend the VSEM example in BayesianTools. With the Code below (the errors) I get: " Error in quantile.default(x, p

Re: [R] par(mfrow) for heatmap plots

2017-07-23 Thread Jeff Newmiller
The answer is "don't do that" because that function abuses par. Use lattice or ggplot2 with grid graphics to plot multiple heatmaps. https://stackoverflow.com/questions/15114347/to-display-two-heatmaps-in-same-pdf-side-by-side-in-r -- Sent from my phone. Please excuse my brevity. On July 23, 20

Re: [R] par(mfrow) for heatmap plots

2017-07-23 Thread Michael Dewey
Dear Brian If you look at ?heatmap and the second paragraph of the Note you will see that it is behaving according to its documentation. On 23/07/2017 13:11, Brian Smith wrote: Hi, I was trying to use par(mfrow) to put 4 heatmaps on a single page. However, I get one plot per page and not one

Re: [R] cannot use package RcmdrPlugin.plotByGroup

2017-07-23 Thread Fox, John
Dear Lu Wei, > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Lu Wei > Sent: Sunday, July 23, 2017 12:27 AM > To: r-h...@stat.math.ethz.ch > Subject: Re: [R] cannot use package RcmdrPlugin.plotByGroup > > On 2017-7-23 6:21, Fox, John wrote: > > Dear L

[R] par(mfrow) for heatmap plots

2017-07-23 Thread Brian Smith
Hi, I was trying to use par(mfrow) to put 4 heatmaps on a single page. However, I get one plot per page and not one page with 4 plots. What should I modify? Test code is given below: test = matrix(rnorm(60), 20, 3) pdf(file='test.pdf',width=10,height=8) par(mfrow=c(2,2)) heatmap(test) heatmap(te