Re: [R] adding percentage secondary y-axis

2017-11-23 Thread PIKAL Petr
Hi Not sure about twoord.plot, try its help page. I did not intend log Y axis in my function. This plot.yy(x=D[,1],yright=D[,3], yleft=D[,2], log="y") gives you log right axis. You have the code, you can modify it according to your desire. Cheers Petr From: Eliza Botto [mailto:eliza_bo...@out

Re: [R] libPaths displays truncated path?

2017-11-23 Thread Loris Bennett
"Berry, Charles" writes: >> On Nov 23, 2017, at 4:34 AM, Loris Bennett >> wrote: >> >> Hi, >> >> TL;DR >> - >> >> I define the path >> >>/cm/shared/apps/R/site-library/3.4.2 >> >> and add it to libPath. Why does libPath then display it as >> >>/cm/shared/apps/R/site-library

Re: [R] [FORGED] Re: installing "rgl" package

2017-11-23 Thread Rolf Turner
On 24/11/17 12:10, Duncan Murdoch wrote: On 23/11/2017 6:05 PM, Santosh wrote: Hi Rxperts, I am trying to install 'rgl' package in Ubuntu.. Would highly appreciate your assistance .. I tried several leads available on various discussion fora and nothing helped so far. Your message is really ha

Re: [R] Fw: modified mankendal

2017-11-23 Thread Jim Lemon
Hi Elham, The error message is pretty explicit. Check your dataset for missing values. Jim On Thu, Nov 23, 2017 at 6:14 AM, Elham Fakharizade via R-help wrote: > > Hello DearI used modifiedmk package for trend analyses.this is my script > require(modifiedmk)X1<-read.table("c:/elham/first > ar

Re: [R] installing "rgl" package

2017-11-23 Thread Duncan Murdoch
On 23/11/2017 6:05 PM, Santosh wrote: Hi Rxperts, I am trying to install 'rgl' package in Ubuntu.. Would highly appreciate your assistance .. I tried several leads available on various discussion fora and nothing helped so far. Your message is really hard to follow, since you posted in HTML. Y

[R] installing "rgl" package

2017-11-23 Thread Santosh
Hi Rxperts, I am trying to install 'rgl' package in Ubuntu.. Would highly appreciate your assistance .. I tried several leads available on various discussion fora and nothing helped so far. * installing *source* package ‘rgl’ ...checking for gcc... gcc -std=gnu99 checking whether the C compiler w

Re: [R] Fw: modified mankendal

2017-11-23 Thread John Kane via R-help
Would you resubmit your question in plain text mode?  This is a plain text list and the HTML gets stripped away. What is left is this Hello DearI used modifiedmk package for trend analyses.this is my script  require(modifiedmk)X1<-read.table("c:/elham/first article/r/Spring_NDVI-1.txt",skip=2,he

Re: [R] adding percentage secondary y-axis

2017-11-23 Thread John Kane via R-help
Actually Petr, I don't see that a secondary y-axis a problem here. If I understand it correctly Eliza is simply presenting the same data against two different scales. We in North America sometimes need to do the same thing when graphing, say  temperature data. We might want degrees Celsius on

Re: [R] libPaths displays truncated path?

2017-11-23 Thread peter dalgaard
> On 23 Nov 2017, at 17:36 , David Winsemius wrote: > >> >> On Nov 23, 2017, at 4:34 AM, Loris Bennett >> wrote: >> >> Hi, >> >> TL;DR >> - >> >> I define the path >> >> /cm/shared/apps/R/site-library/3.4.2 >> >> and add it to libPath. Why does libPath then display it as >> >>

Re: [R] adding percentage secondary y-axis

2017-11-23 Thread Eliza Botto
Thank you very much peter. It worked out nicely. I have additional question. How can I get Y-axis on log-scale? Thank you very much in Advance, Eliza UoS PP From: PIKAL Petr Sent: 23 November 2017 16:22:39 To: Eliza Botto; r-help@r-project.org Subject: RE:

Re: [R] function pointers?

2017-11-23 Thread jim holtman
I am replying to the first part of the question about the size of the object. It is probably best to use the "object_size" function in the "pryr" package: ‘object_size’ works similarly to ‘object.size’, but counts more accurately and includes the size of environments. ‘compare_size’ ma

Re: [R] libPaths displays truncated path?

2017-11-23 Thread David Winsemius
> On Nov 23, 2017, at 4:34 AM, Loris Bennett wrote: > > Hi, > > TL;DR > - > > I define the path > >/cm/shared/apps/R/site-library/3.4.2 > > and add it to libPath. Why does libPath then display it as > >/cm/shared/apps/R/site-library/3.4 Generally one only has a different lib

Re: [R] libPaths displays truncated path?

2017-11-23 Thread Berry, Charles
> On Nov 23, 2017, at 4:34 AM, Loris Bennett wrote: > > Hi, > > TL;DR > - > > I define the path > >/cm/shared/apps/R/site-library/3.4.2 > > and add it to libPath. Why does libPath then display it as > >/cm/shared/apps/R/site-library/3.4 > > ? > Because it is a symbolic li

Re: [R] adding percentage secondary y-axis

2017-11-23 Thread PIKAL Petr
Hi It is usually not recommended but if you insist maybe library(plotrix) ?twoord.plot twoord.plot(lx=D[,1],ly=D[,2], rx=D[,1], ry=D[,3]) or plot.yy(x=D[,1],yright=D[,3], yleft=D[,2]) which allows only one x axis (see below). Cheers Petr plot.yy <- function (x, yright, yleft, yleftlim = NULL

Re: [R] assign NA to rows by test on multiple columns of a data frame

2017-11-23 Thread Bert Gunter
Inline. -- Bert On Wed, Nov 22, 2017 at 11:52 PM, Massimo Bressan < massimo.bres...@arpa.veneto.it> wrote: > yes, it works, even if I do not really get how and why it's working the > combination of logical results (could you provide some insights for that?) > Read the docs! ?"!" ?NA explain

[R] adding percentage secondary y-axis

2017-11-23 Thread Eliza Botto
Dear useRs, I have this dataset (D) with three columns. > dput(D) structure(c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 2.990484802, 3.005018792, 3.019552781, 3.03408677, 3.048620759, 3.063154749, 3.077688738, 3.09727, 3.106756717, 3.121290706, 3.135824695, 3.1

[R] libPaths displays truncated path?

2017-11-23 Thread Loris Bennett
Hi, TL;DR - I define the path /cm/shared/apps/R/site-library/3.4.2 and add it to libPath. Why does libPath then display it as /cm/shared/apps/R/site-library/3.4 ? Long version I run a cluster of diskless nodes for which the OS is loaded directly into RAM and

Re: [R] ccomp Composition and ggtern plot...

2017-11-23 Thread Levent TERLEMEZ via R-help
Thank you for your kind and quick answers, Jeff Newmiller and Ron Crump. I looked at the help pages, but I missed the point you underlined.. Solved the problem. Levent TERLEMEZ. On 22.11.2017 23:23, "Jeff Newmiller" wrote: >I have no clue what this package is for, but reading the help page fo

Re: [R] ccomp Composition and ggtern plot...

2017-11-23 Thread Crump, Ron
> I would like to use compositions package with ggplot/ggtern, other > composition classes of compositional package can be used with ggtern > by converting to data frame but I could do anything with c(ount)comp > class. Ggplot/ggtern can not recognise comp and also can not be converted > > to data

Re: [R] How to produce rainfall maps

2017-11-23 Thread Stefano Sofia
Thank you Sarah and Mike for your explanations. My final objective is to produce maps (png image or any kind of extension I can import in LaTeX) where rainfall data are interpolated, using the Inverse Distance method or Kriging. My input file (pointfile.csv in the reported example) reports the st