Re: [R] show 0 at y axis in xyplot lattice

2017-09-11 Thread Duncan Mackay
Hi Maria Rule 1 make sure your data is in the right format dat <- source("G:/1/savedat.txt") > dat $value Location Date Zn2 upper.zn lower.zn 1upstream 2016-04-27 29.92477 55.59800 13.912207 2 spill 2016-04-27 12.84040 22.07006 6.964934 3 downstream 2016-04-27

Re: [R] show 0 at y axis in xyplot lattice

2017-09-11 Thread Jeff Newmiller
I recommend that Maria read [1], [2] and especially [3], since the latter helps you verify that your example is in fact reproducible before sending it out for us to have problems with and complain about. [1] http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example

Re: [R] show 0 at y axis in xyplot lattice

2017-09-11 Thread Bert Gunter
Not reproducible, as we have neither "example.csv" nor "Date" . 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 Mon, Sep 11, 2017 at 2:38 PM,

[R] Σχετ: show 0 at y axis in xyplot lattice

2017-09-11 Thread Maria Lathouri via R-help
Dear Bert and all, I am really sorry. This is the full code: dat<-read.csv("example.csv")attach(dat) sdate<-as.Date(Date, format="%Y-%m-%d") #change the colour of the strip background my.settings <- canonical.theme(color=FALSE) my.settings[['strip.background']]$col <- "blue" dat_key <-

Re: [R] show 0 at y axis in xyplot lattice

2017-09-11 Thread Bert Gunter
1. Not reproducible since my.settings, dat_key, sdate not provided. 2. Why did you not try something like ylim = c(-5,80) ? 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

[R] show 0 at y axis in xyplot lattice

2017-09-11 Thread Maria Lathouri via R-help
Dear all I am trying to make a plot in xyplot lattice by groups. I would like to show "0" in y axis but I don't want to be aligned with the x axis. I want to be a little bit above. I have tried many options but I don't get what I want. I also tried ylim=c(0, 80) but both 0 and 80 are fully

Re: [ESS] [R] M-x R gives no choice of starting dir

2017-09-11 Thread Enrico Schumann
On Mon, 11 Sep 2017, Christian writes: > Hi, > > I experienced a sudden change in the behavior of M-x R in not giving > me the choice where to start R. May be that I botched my > preferences. I am using Aquamacs 3.3 on MacOS 10.12.6 > > Christian I suppose you are using ESS? There is a variable

Re: [R] M-x R gives no choice of starting dir

2017-09-11 Thread Wensui Liu
i am using emacs on ubuntu and have no such issue. On Mon, Sep 11, 2017 at 10:31 AM, Christian wrote: > Hi, > > I experienced a sudden change in the behavior of M-x R in not giving me > the choice where to start R. May be that I botched my preferences. I am > using

Re: [R] M-x R gives no choice of starting dir

2017-09-11 Thread peter dalgaard
There's an ESS mailing list... However, I'm not seeing that behaviour with a similar setup. -pd > On 11 Sep 2017, at 17:31 , Christian wrote: > > Hi, > > I experienced a sudden change in the behavior of M-x R in not giving me the > choice where to start R. May be

[R] M-x R gives no choice of starting dir

2017-09-11 Thread Christian
Hi, I experienced a sudden change in the behavior of M-x R in not giving me the choice where to start R. May be that I botched my preferences. I am using Aquamacs 3.3 on MacOS 10.12.6 Christian -- Christian Hoffmann Rigiblickstrasse 15b CH-8915 Hausen am Albis Switzerland Telefon

Re: [R] Case statement in sqldf

2017-09-11 Thread Gabor Grothendieck
2018-03-3 in your code should be 2018-03-31. The line then'201415' needs to be fixed. When posting please provide minimal self-contained examples. There was no input provided and library statements not relevant to the posted code were included. Fixing the invalid date and bad line, getting

Re: [R] Case statement in sqldf

2017-09-11 Thread David Winsemius
> On Sep 11, 2017, at 1:05 AM, Mangalani Peter Makananisa > wrote: > > Hi all, > > I am trying to create a new variable called Fiscal Year (FY) using case > expression in sqldf and I am getting a null FY , see the code below . > > Please advise me as to how I can

[R] Case statement in sqldf

2017-09-11 Thread Mangalani Peter Makananisa
Hi all, I am trying to create a new variable called Fiscal Year (FY) using case expression in sqldf and I am getting a null FY , see the code below . Please advise me as to how I can do this mutation. library(zoo) library(lubridate) library(stringr) library(RH2) library(sqldf)

Re: [R-es] Quitar márgenes

2017-09-11 Thread Carlos Ortega
Hola, Los márgenes entre los plots los controlas con el parámetro "oma" de "par()". Saludos, Carlos Ortega www.qualityexcellence.es El 11 de septiembre de 2017, 10:19, Jesús Para Fernández < j.para.fernan...@hotmail.com> escribió: > Buenas, > > He creado en un a3 un gráfico para poder