Re: [R] Scaling x axis

2016-02-26 Thread Gerrit Draisma
25 Feb 2016 12:31:00 + From: Fabio Monteiro To: r-help@r-project.org Subject: [R] Scaling x axis Message-ID: Content-Type: text/plain; charset="UTF-8" Hi i'm trying to plot my data in R and i can't manage to scale the x axis. My x axis are dates, months and year

Re: [R] Scaling x axis

2016-02-25 Thread Jim Lemon
Hi Fabio, If you have more than a few dates on the X axis you may get overlapping tick labels. As an example, take a plot of the winning parties of by-elections held in Australia in the 21st century by the dates of the elections: be_dates<-as.Date(c("5/12/2015","19/09/2015","8/2/2014", "5/12/2009

Re: [R] Scaling x axis

2016-02-25 Thread PIKAL Petr
Fabio > Monteiro > Sent: Thursday, February 25, 2016 1:31 PM > To: r-help@r-project.org > Subject: [R] Scaling x axis > > Hi > > i'm trying to plot my data in R and i can't manage to scale the x axis. > > My x axis are dates, months and years, and when I plot

Re: [R] Scaling x axis

2016-02-25 Thread Duncan Murdoch
On 25/02/2016 7:31 AM, Fabio Monteiro wrote: Hi i'm trying to plot my data in R and i can't manage to scale the x axis. My x axis are dates, months and years, and when I plot I only have the x axis like this (2002, 2004, 2006, 2008, 2010). I whant every date in the axis not only those years, i

[R] Scaling x axis

2016-02-25 Thread Fabio Monteiro
Hi i'm trying to plot my data in R and i can't manage to scale the x axis. My x axis are dates, months and years, and when I plot I only have the x axis like this (2002, 2004, 2006, 2008, 2010). I whant every date in the axis not only those years, i want to see every point with the respectively

Re: [R] Scaling X axis from -1 to 1

2008-09-15 Thread Jim Lemon
Gundala Viswanath wrote: Hi, I have a density plot in which the x axis ranged from 0 to 2000. How can I scale the data so that the x-axis is scaled in -1 to 1 form? Hi Gundala, If your data is named "mydata": mynewdata<-rescale(mydata,c(-1,1)) This will linearly transform "mydata" into t

Re: [R] Scaling X axis from -1 to 1

2008-09-14 Thread Yihui Xie
2 * (x - min(x))/(max(x) - min(x)) - 1 On Sun, Sep 14, 2008 at 10:13 PM, Gundala Viswanath <[EMAIL PROTECTED]> wrote: > Hi, > > I have a density plot in which the x axis > ranged from 0 to 2000. > > How can I scale the data so that the x-axis > is scaled in -1 to 1 form? > > - Gundala Viswanath >

[R] Scaling X axis from -1 to 1

2008-09-14 Thread Gundala Viswanath
Hi, I have a density plot in which the x axis ranged from 0 to 2000. How can I scale the data so that the x-axis is scaled in -1 to 1 form? - Gundala Viswanath Jakarta - Indonesia __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listi

Re: [R] scaling x-axis in hist function

2007-11-09 Thread Henrique Dallazuanna
code > with my code written above? > > > > Thanks a lot! > > > > manisha > > > > ____________ > > From: Henrique Dallazuanna [mailto:[EMAIL PROTECTED] > Sent: Friday, November 09, 2007 2:51 PM > To: Manisha Brahmachary &g

Re: [R] scaling x-axis in hist function

2007-11-09 Thread Manisha Brahmachary
, what does runif(50,0,1) mean? How do I intergrate your code with my code written above? Thanks a lot! manisha _ From: Henrique Dallazuanna [mailto:[EMAIL PROTECTED] Sent: Friday, November 09, 2007 2:51 PM To: Manisha Brahmachary Cc: [EMAIL PROTECTED] Subject: Re: [R] scaling x-axis

Re: [R] scaling x-axis in hist function

2007-11-09 Thread Henrique Dallazuanna
Perhaps you can do: x <- runif(50, 0,1) hist(x, axes=F) axis(2) axis(1, at=seq(0,1, by=0.1), labels=seq(0,1, by=0.1)) -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O On 09/11/2007, Manisha Brahmachary <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I have a query regard

[R] scaling x-axis in hist function

2007-11-09 Thread Manisha Brahmachary
Hi, I have a query regarding usage of hist (histogram) function in R. I have a data where the range of the x -axis is from 0.0-1.0. When I use hist the ticks on the x-axis it gives me by default is at 0.0,0.2,0.4,0.6,0.8 and 1.0. If I want more ticks such that the x-axis has 0.0,0.1,0.2,