Re: [R] X axis labels are not fully shown when using pareto.chart function

2020-09-16 Thread Luca Scrucca
The following works: library(qcc) x = dataset2$Points names(x) = dataset2$School par(oma = c(2,0,0,0)) pareto.chart(x) You may need to adjust the oma parameter. BTW, next time please provide a reproducible example. I spent more time to figure out which is the correct variable/lab

Re: [R] X axis labels are not fully shown when using pareto.chart function

2020-09-15 Thread Jim Lemon
Hi Paul, It is a contest between the quantity of information and legibility. You have 140 labels to place on the x-axis in your plot and I barely managed it by almost doubling the width of the plot, halving the size of the font and truncating the labels to a maximum of 20 characters. Unless you wan

Re: [R] X axis labels are not fully shown when using pareto.chart function

2020-09-15 Thread Paul Bernal
Dear Jim, Thank you so much for your valuable and kind reply. I will try what you suggest and will let you and the group members how that goes. Can the resolution you suggest be applied whenever I encounter an issue like the one I just described (to make x-axis labels clearly visible)? I imagine

Re: [R] X axis labels are not fully shown when using pareto.chart function

2020-09-15 Thread Jim Lemon
Hi Paul, This looks very familiar to me, but I'll send my previous suggestion. library(qcc) x11(width=13,height=5) pareto.chart(dataset2$Points,xaxt="n") library(plotrix) staxlab(1,at=seq(0.035,0.922,length.out=140), labels=substr(dataset2$School,1,20),srt=90,cex=0.5) Jim On Wed, Sep 16, 2020 a

[R] X axis labels are not fully shown when using pareto.chart function

2020-09-15 Thread Paul Bernal
Dear friends, Hope you are doing well. I am currently using R version 3.6.2. I installed and loaded package qcc by Mr. Luca Scrucca. Hopefully someone can tell me if there is a workaround for the issue I am experiencing. I generated the pareto chart using qcc´s pareto.chart function, but when th

Re: [R] x-axis tick marks on log scale plot

2016-05-20 Thread Robert Baer
Very, very nice. Thanks for sharing. On 5/20/2016 4:21 AM, Martin Maechler wrote: >> Brian Smith >> on Thu, 19 May 2016 11:04:55 -0400 writes: > > Thanks all !! On Thu, May 19, 2016 at 9:55 AM, Ivan > > Calandra wrote: > > >> Hi, > >> > >> You can do it b

Re: [R] x-axis tick marks on log scale plot

2016-05-20 Thread Martin Maechler
> Brian Smith > on Thu, 19 May 2016 11:04:55 -0400 writes: > Thanks all !! On Thu, May 19, 2016 at 9:55 AM, Ivan > Calandra wrote: >> Hi, >> >> You can do it by first plotting your values without the >> x-axis: plot(x,y,log="xy", xaxt="n") >> >> an

Re: [R] x-axis tick marks on log scale plot

2016-05-19 Thread Brian Smith
Thanks all !! On Thu, May 19, 2016 at 9:55 AM, Ivan Calandra wrote: > Hi, > > You can do it by first plotting your values without the x-axis: > plot(x,y,log="xy", xaxt="n") > > and then plotting the x-axis with ticks where you need to: > axis(side=1, at=seq(2000,8000,1000)) > > HTH, > Ivan > > -

Re: [R] x-axis tick marks on log scale plot

2016-05-19 Thread Ivan Calandra
Hi, You can do it by first plotting your values without the x-axis: plot(x,y,log="xy", xaxt="n") and then plotting the x-axis with ticks where you need to: axis(side=1, at=seq(2000,8000,1000)) HTH, Ivan -- Ivan Calandra, PhD Scientific Mediator University of Reims Champagne-Ardenne GEGENAA - E

Re: [R] x-axis tick marks on log scale plot

2016-05-19 Thread Duncan Murdoch
On 19/05/2016 9:40 AM, Brian Smith wrote: Hi, I have a plot with log scale on the axes. How do I add ticks and labels in addition to the ones provided by default? Can I specify where I want the ticks and labels? For example: set.seed(12345) x <- sample(1:1,10) y <- sample(1:1,10) plot

[R] x-axis tick marks on log scale plot

2016-05-19 Thread Brian Smith
Hi, I have a plot with log scale on the axes. How do I add ticks and labels in addition to the ones provided by default? Can I specify where I want the ticks and labels? For example: set.seed(12345) x <- sample(1:1,10) y <- sample(1:1,10) plot(x,y,log="xy") For me, this plot has tick

Re: [R] x axis position and ggplot2

2014-12-12 Thread Duncan Mackay
… Regards Duncan From: Jouanin Celine [mailto:celine_joua...@yahoo.fr] Sent: Friday, 12 December 2014 19:16 To: Duncan Mackay; R; Jeff Newmiller Subject: Re: [R] x axis position and ggplot2 Hi, Thank you for your answer, I thought we could used something like the "axis"

Re: [R] x axis position and ggplot2

2014-12-12 Thread Jouanin Celine
e' Envoyé le : Jeudi 11 décembre 2014 2h57 Objet : RE: [R] x axis position and ggplot2 Hi I do not know ggplot2 well enough to give any advice but as Geff has mention lattice see http://tolstoy.newcastle.edu.au/R/e2/help/07/05/17666.html library(grid) myXlabGrob <- function(...)

Re: [R] x axis position and ggplot2

2014-12-10 Thread Duncan Mackay
c...@northnet.com.au -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Jouanin Celine Sent: Thursday, 11 December 2014 02:44 To: r-help@r-project.org Subject: [R] x axis position and ggplot2 Hi all, Is it possible to change the position of the x axis to ha

Re: [R] x axis position and ggplot2

2014-12-10 Thread Jeff Newmiller
I don't think that is possible with the ggplot2 package. Try lattice or base graphics? --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go...

[R] x axis position and ggplot2

2014-12-10 Thread Jouanin Celine
Hi all, Is it possible to change the position of the x axis to have it at the top of the plot when we use the ggplot function ?Thanks for your help,Céline [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRI

Re: [R] x axis labelling

2014-07-01 Thread Duncan Mackay
ncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Michael Millar Sent: Wednesday, 2 July 2014 03:

Re: [R] x axis labelling

2014-07-01 Thread Jim Lemon
On Tue, 1 Jul 2014 06:41:52 PM Michael Millar wrote: > Hi, > > I am new to R and am trying to create a graph with Time(24hr) along the x > axis. Rather than start at 01.00, I wanted to start at 14.00. > > I tried to use the axis(side=1, at=c( )) function but it continues to put > then in numeri

Re: [R] x axis labelling

2014-07-01 Thread Michael Peng
Did you add xaxt = "n" in the plot function? Try the following: plot(x,y, xaxt = "n") axis(1, at = c(14, 20),labels = c("14h", "20h") ) 2014-07-01 12:41 GMT-05:00 Michael Millar : > Hi, > > I am new to R and am trying to create a graph with Time(24hr) along the x > axis. Rather than start at 01

[R] x axis labelling

2014-07-01 Thread Michael Millar
Hi, I am new to R and am trying to create a graph with Time(24hr) along the x axis. Rather than start at 01.00, I wanted to start at 14.00. I tried to use the axis(side=1, at=c( )) function but it continues to put then in numeric order. Is there another way I can add labels to the x axis? Tha

Re: [R] x-axis value in boxplot

2013-12-25 Thread David Winsemius
On Dec 24, 2013, at 9:02 PM, Kochikkaran Musammilu wrote: > Hai, > > I > am new to „R‰ software. > > I have a doubt, while doing analysis, > keeping the x axis value as year, in graphical representation (ie, in > boxplot) the values comes as "X2005", and "X2006" > and so on in x axis. How to k

[R] x-axis value in boxplot

2013-12-25 Thread Kochikkaran Musammilu
Hai, I am new to “R” software. I have a doubt, while doing analysis, keeping the x axis value as year, in graphical representation (ie, in boxplot) the values comes as "X2005", and "X2006" and so on in x axis. How to keep "2005", "2006" as x axis value instead of "X2005" and "X2006". In gist, t

Re: [R] X axis label as months

2013-08-21 Thread Jim Lemon
On 08/22/2013 09:04 AM, Prof J C Nash (U30A) wrote: Thanks. The staxlab works with the plot generated by plot(tt, data,) but not with plot(tsdata, ...) i.e., it seems to be the tsplot that somehow changes something and the axis commands have no effect. I probably should have pointed out

Re: [R] X axis label as months

2013-08-21 Thread Prof J C Nash (U30A)
Thanks. The staxlab works with the plot generated by plot(tt, data,) but not with plot(tsdata, ...) i.e., it seems to be the tsplot that somehow changes something and the axis commands have no effect. I probably should have pointed out that my main concern is that I'm not getting any e

Re: [R] X axis label as months

2013-08-21 Thread Jim Lemon
On 08/22/2013 07:56 AM, Prof J C Nash (U30A) wrote: There are several items on the web about putting month names as tick labels on x axis of time plots, but I found when I tried them they did not work for me. After an hour or so of driving myself silly looking for a bug in my code, I've prepared

Re: [R] X axis label as months

2013-08-21 Thread Gabor Grothendieck
On Wed, Aug 21, 2013 at 5:56 PM, Prof J C Nash (U30A) wrote: > There are several items on the web about putting month names as tick labels > on x axis of time plots, but I found when I tried them they did not work for > me. After an hour or so of driving myself silly looking for a bug in my > code

[R] X axis label as months

2013-08-21 Thread Prof J C Nash (U30A)
There are several items on the web about putting month names as tick labels on x axis of time plots, but I found when I tried them they did not work for me. After an hour or so of driving myself silly looking for a bug in my code, I've prepared a reproducible example below, where I did find a w

Re: [R] x-axis (categorial variable) ordering with xyplot function (lattice package)

2013-07-25 Thread Arnaud Blaser
Dear Duncan, "If you want to make a plot of the style of xyplot a numerical index of the country is needed and then use the scales argument to annote the labels with the country." I think you were right. It worked and I does seem to be the simplest option. Many thanks ! Regards, Arnaud Le

Re: [R] x-axis (categorial variable) ordering with xyplot function (lattice package)

2013-07-24 Thread Jim Lemon
On 07/25/2013 12:17 AM, BLASER Arnaud wrote: Dear R mailing list readers, I am facing the following problem; for simplicity imagine I am working on a data frame of, say, 5 columns. The first column is a list of European countries, the other four are an index (continuous variable) of climate ch

Re: [R] x-axis (categorial variable) ordering with xyplot function (lattice package)

2013-07-24 Thread Duncan Mackay
forgot to cc to list Hi For an xyplot you have not got the proper coding for the x value which should be numeric. If you want to make a plot of the style of xyplot a numerical index of the country is needed and then use the scales argument to annote the labels with the country. Do you want

[R] x-axis (categorial variable) ordering with xyplot function (lattice package)

2013-07-24 Thread BLASER Arnaud
Dear R mailing list readers, I am facing the following problem; for simplicity imagine I am working on a data frame of, say, 5 columns. The first column is a list of European countries, the other four are an index (continuous variable) of climate change impact under 4 different scenarios. Coun

Re: [R] X-axis in meandist {vegan}

2013-06-02 Thread Jari Oksanen
Dear Kumar Mainali, On 03/06/2013, at 00:01 AM, Kumar Mainali wrote: > I am using vegan package for estimating dissimilarity within and between > clusters, and plotting them. The following code gives me a dendrogram without > X-axis. How would I add X axis to the plot? Below "dataEnv" is a mat

[R] X-axis in meandist {vegan}

2013-06-02 Thread Kumar Mainali
I am using vegan package for estimating dissimilarity within and between clusters, and plotting them. The following code gives me a dendrogram without X-axis. How would I add X axis to the plot? Below "dataEnv" is a matrix of my environmental variables. dataFact$Source_by_Type has the levels that d

Re: [R] x axis problem when plotting

2013-05-21 Thread arun
ctors=FALSE)  dat1$days<-as.numeric(format(as.Date(dat1$Date,format="%m/%d/%Y"),"%w")) plot(Var~days,data=dat1,xaxt="n",xlab="Day of week")  axis(1,at=dat1$days,labels=dat1$day) A.K. - Original Message - From: Ye Lin To: R help Cc: Sent: Tuesday, May

[R] x axis problem when plotting

2013-05-21 Thread Ye Lin
Hey I have a dataset like this: Date Var day 1/1/2013 1 Tue 1/2/2013 2 Wed 1/3/2013 3 Thu 1/4/2013 4 Fri 1/5/2013 5 Sat 1/6/2013 6 Sun 1/7/2013 7 Mon 1/8/2013 8 Tue 1/9/2013 9 Wed 1/10/2013 10 Thu And I want to plot Var~day Here is the code I use: plot(Dataset$Var~Dataset$day,xlab='Day

Re: [R] x-axis labelling

2013-02-04 Thread David Winsemius
On Feb 4, 2013, at 4:00 AM, Alfredo Tello wrote: > Hi Dave, > > Thanks for your reply. I can't reproduce the last line of code your code. The > ifelse argument throws back an error saying it was not used. Did you look at your graphics window? On my machine the plot you asked for was created b

Re: [R] x-axis labelling

2013-02-04 Thread Alfredo Tello
Hi Dave, Thanks for your reply. I can't reproduce the last line of code your code. The ifelse argument throws back an error saying it was not used. A On Fri, Feb 1, 2013 at 10:56 PM, David Winsemius wrote: > > On Feb 1, 2013, at 9:30 AM, Alfredo Tello wrote: > > Hi Folks! >> >> I have a quest

Re: [R] x-axis labelling

2013-02-01 Thread David Winsemius
On Feb 1, 2013, at 9:30 AM, Alfredo Tello wrote: Hi Folks! I have a question regarding an issue on which I´ve read a few threads but can´t resolve --> Labelling every other tick mark on the x-axis using factors. Here´s an example: Why not: db<-data.frame(date=as.factor(c(1:50)),var=rnorm

[R] x-axis labelling

2013-02-01 Thread Alfredo Tello
Hi Folks! I have a question regarding an issue on which I´ve read a few threads but can´t resolve --> Labelling every other tick mark on the x-axis using factors. Here´s an example: db<-data.frame(date=as.factor(c(1:50)),var=rnorm(50)) barplot(db$var,names.arg=levels(db$date),las=2,cex.axis=0.8,c

Re: [R] x axis labels

2012-12-02 Thread Jim Lemon
On 12/02/2012 09:49 AM, apprentice wrote: Hi, I have a problem with plotting my data as a histogram using barplot2. I am plotting the x axis using axis(). I want to label only every fifth bar and not all of them as they get too busy but I don't know how to do it. I was trying to set the labels f

[R] x axis labels

2012-12-01 Thread apprentice
Hi, I have a problem with plotting my data as a histogram using barplot2. I am plotting the x axis using axis(). I want to label only every fifth bar and not all of them as they get too busy but I don't know how to do it. I was trying to set the labels for the axis using at=seq(min value, max valu

Re: [R] x axis dates

2012-05-13 Thread Jim Lemon
On 05/13/2012 03:49 AM, pip wrote: The following data spans out to 2012 and when graphing out the data - R defaults dates on x axis only shows the years eg 200520072009 My question is how can I get the graph to show more dates on the axis - eg every qtr or 6 months or every month etc PR

Re: [R] x axis dates

2012-05-12 Thread R. Michael Weylandt
My guess is that this is sensitive to the size of the graphics device being used so the simplest thing to do is simply make your plot device bigger. Otherwise, we'll need a reproducible example. Michael On May 12, 2012, at 1:49 PM, pip wrote: > The following data spans out to 2012 and when

[R] x axis dates

2012-05-12 Thread pip
The following data spans out to 2012 and when graphing out the data - R defaults dates on x axis only shows the years eg 200520072009 My question is how can I get the graph to show more dates on the axis - eg every qtr or 6 months or every month etc PRODUCT,DATE,AMOUNT_1,AMOUNT_2 A,3/1/

Re: [R] x-axis label for boxplot

2012-02-08 Thread John Sorkin
--Original Message----- From: John Sorkin Sent: Wednesday, February 08, 2012 6:48 PM Cc: r-help Subject: [R] x-axis label for boxplot I am trying to produce three boxplots and label the x axis values: xvalues, yvalues, zvalues. My code is below. The labels are not below the three boxplots. If

Re: [R] x-axis label for boxplot

2012-02-08 Thread David Winsemius
On Feb 8, 2012, at 7:48 PM, John Sorkin wrote: I am trying to produce three boxplots and label the x axis values: xvalues, yvalues, zvalues. My code is below. The labels are not below the three boxplots. If you could show me how to get the labels below the columns I would be appreciative. J

Re: [R] x-axis label for boxplot

2012-02-08 Thread Robert Baer
xlab = needs to be names = see ?boxplot boxplot(jdata[,"x"],jdata[,"y"],jdata[,"z"],names=c("x values","yvalues","zvalues")) -Original Message- From: John Sorkin Sent: Wednesday, February 08, 2012 6:48 PM Cc: r-help S

[R] x-axis label for boxplot

2012-02-08 Thread John Sorkin
I am trying to produce three boxplots and label the x axis values: xvalues, yvalues, zvalues. My code is below. The labels are not below the three boxplots. If you could show me how to get the labels below the columns I would be appreciative. John jdata<-data.frame(x = rnorm(100),y=rnorm(100,1),

Re: [R] x axis

2011-10-13 Thread David L Carlson
. Michael Weylandt Sent: Thursday, October 13, 2011 1:17 PM To: lauren mcdonagh Cc: r-help@r-project.org Subject: Re: [R] x axis In your plot call, you can use xaxt = "n" to turn off the default x axis tick marks, then add axis(1, at = VARIABLEWHEREYOUWANTTICKMARKS) # If you want ticks at

Re: [R] x axis

2011-10-13 Thread R. Michael Weylandt
In your plot call, you can use xaxt = "n" to turn off the default x axis tick marks, then add axis(1, at = VARIABLEWHEREYOUWANTTICKMARKS) # If you want ticks at the x you put in, its just axis(1, at = x) to get ticks where you want them. There's also a label= argument if you want them to be labl

[R] x axis

2011-10-13 Thread lauren mcdonagh
Dear R users, I am quite desperate for help. I haven't used R in a couple of years and I'm currently finishing a masters project and running out of time to figure out my problem. I have read and tried the examples on many websites, in your forums and R Help yet still can't manage to change the

Re: [R] x-axis label print in 45 degree

2010-08-15 Thread Jim Lemon
On 08/13/2010 05:14 AM, array chip wrote: Hi how can print x-axis labels in 45 degree in boxplot() (or plot in general)? I can use las=2 to print in 90 degree, but it looks ugly. Is there a simple option to do 45 degree easily? Hi John, Have a look at staxlab in the plotrix package, particular

Re: [R] x-axis label print in 45 degree

2010-08-12 Thread array chip
I searched with "print x-axis label in 45 degree" which didn't return useful links. Apparently I used poor search keywords. - Original Message From: David Winsemius To: Marc Schwartz Cc: array chip ; r-help@r-project.org Sent: Thu, August 12, 2010 12:34:16 PM Sub

Re: [R] x-axis label print in 45 degree

2010-08-12 Thread array chip
Than you Marc. John - Original Message From: Marc Schwartz To: array chip Cc: r-help@r-project.org Sent: Thu, August 12, 2010 12:17:12 PM Subject: Re: [R] x-axis label print in 45 degree On Aug 12, 2010, at 2:14 PM, array chip wrote: > Hi how can print x-axis labels in 45 deg

Re: [R] x-axis label print in 45 degree

2010-08-12 Thread David Winsemius
On Aug 12, 2010, at 3:17 PM, Marc Schwartz wrote: On Aug 12, 2010, at 2:14 PM, array chip wrote: Hi how can print x-axis labels in 45 degree in boxplot() (or plot in general)? I can use las=2 to print in 90 degree, but it looks ugly. Is there a simple option to do 45 degree easily? Thank

Re: [R] x-axis label print in 45 degree

2010-08-12 Thread Marc Schwartz
On Aug 12, 2010, at 2:14 PM, array chip wrote: > Hi how can print x-axis labels in 45 degree in boxplot() (or plot in > general)? I > can use las=2 to print in 90 degree, but it looks ugly. Is there a simple > option > to do 45 degree easily? > > Thanks > > John John, See R FAQ 7.27 How c

[R] x-axis label print in 45 degree

2010-08-12 Thread array chip
Hi how can print x-axis labels in 45 degree in boxplot() (or plot in general)? I can use las=2 to print in 90 degree, but it looks ugly. Is there a simple option to do 45 degree easily? Thanks John __ R-help@r-project.org mailing list https://stat.

Re: [R] x-axis annotation

2010-08-09 Thread array chip
Thank you David! - Original Message From: David Winsemius To: array chip Cc: r-help@r-project.org Sent: Mon, August 9, 2010 12:42:06 PM Subject: Re: [R] x-axis annotation On Aug 9, 2010, at 3:14 PM, array chip wrote: > Hi, I have a simple plot by plot(x,y, log='xy').

Re: [R] x-axis annotation

2010-08-09 Thread David Winsemius
On Aug 9, 2010, at 3:14 PM, array chip wrote: Hi, I have a simple plot by plot(x,y, log='xy'). However, due to the large range of values of x, the x-axis annotation is printed as "2e+02 1e+03 5e +03 2e+04 1e+05" instead of "200 1000 5000 2 10". How can I make it printed as

[R] x-axis annotation

2010-08-09 Thread array chip
Hi, I have a simple plot by plot(x,y, log='xy'). However, due to the large range of values of x, the x-axis annotation is printed as "2e+02 1e+03 5e+03 2e+04 1e+05" instead of "200 1000 5000 2 10". How can I make it printed as in the later one? Thanks John _

Re: [R] x-axis labels for barplot of zoo object

2010-07-08 Thread Rainer M Krug
On Thu, Jul 8, 2010 at 12:42 PM, Gabor Grothendieck wrote: > On Thu, Jul 8, 2010 at 4:17 AM, Rainer M Krug wrote: > > Hi > > > > Let's assume, I have a dataset of 1000 datapoints, which represent daily > > recordings of a measurement. > > They are stored as a ts object (see example below) > > >

Re: [R] x-axis labels for barplot of zoo object

2010-07-08 Thread Gabor Grothendieck
On Thu, Jul 8, 2010 at 4:17 AM, Rainer M Krug wrote: > Hi > > Let's assume, I have a dataset of 1000 datapoints, which represent daily > recordings of a measurement. > They are stored as a ts object (see example below) > > Now I want to represent them as a barplot. I found the barplot in the zoo >

[R] x-axis labels for barplot of zoo object

2010-07-08 Thread Rainer M Krug
Hi Let's assume, I have a dataset of 1000 datapoints, which represent daily recordings of a measurement. They are stored as a ts object (see example below) Now I want to represent them as a barplot. I found the barplot in the zoo package, but I have one problem: the x-axis labels. I would like to

Re: [R] x-axis plot problem

2010-02-08 Thread abotaha
Many many thanks.it is working now very well. again thanks a lot. -- View this message in context: http://n4.nabble.com/x-axis-plot-problem-tp1472286p1473006.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.or

Re: [R] x-axis plot problem

2010-02-08 Thread David Winsemius
On Feb 8, 2010, at 5:00 AM, abotaha wrote: Thanks guys, it works now properly when I change axas="i" to axat="n", but there is a space between the box from the left side (y-axis) and the beginning plotted curve. please could you tell me how avoid that. any suggestions Add the xaxt but do

Re: [R] x-axis plot problem

2010-02-08 Thread abotaha
Thanks guys, it works now properly when I change axas="i" to axat="n", but there is a space between the box from the left side (y-axis) and the beginning plotted curve. please could you tell me how avoid that. any suggestions thanks, -- View this message in context: http://n4.nabble.com/x-

Re: [R] x-axis plot problem

2010-02-07 Thread Jorge Ivan Velez
Hi abotaha, Modify your matplot() call as matplot(model, pch = c(1,22,17,16), type = "o",lty=c(2,2,2,5), col =c("gray10"," gray10","gray10","gray10"),xlab="Month-Year",ylab="Zinth", xaxt = "n", yaxs = "i",main="Model Output") and then add axis(1, 1:6, time) HTH, Jorge On Sun, Feb 7,

Re: [R] x-axis plot problem

2010-02-07 Thread Rolf Turner
I think you just need to set axes=FALSE in your call to matplot(). You'll then need to add the y-axis manually --- do axis(2) in addition to your call which draws the x axis. You'll also need to do box() if you want a box around your graph. cheers, Rolf Turner P. S. You

Re: [R] x-axis plot problem

2010-02-07 Thread David Winsemius
On Feb 7, 2010, at 3:22 PM, abotaha wrote: Hi all, I tried to have plot of many vector in one plot and i have got a nice plot but i have problem with x-axis. I want to have month and year only(Jul.07 means July 2007) in x-axis without appearing other number behaind it. I'm going to assu

[R] x-axis plot problem

2010-02-07 Thread abotaha
Hi all, I tried to have plot of many vector in one plot and i have got a nice plot but i have problem with x-axis. I want to have month and year only(Jul.07 means July 2007) in x-axis without appearing other number behaind it. I would appercit any help. The R code: F<-c(7.49,6.91,6.78,6.99,7.

Re: [R] X-axis range

2009-09-15 Thread David Winsemius
roject.org Subject: [R] X-axis range Hi all, I would like to change the x-axis of my graphs from year 1998 to 2008 with an interval of 5 (i.e. 1998, 2003, 2008). Any help would be greatly appreciated. http://www.nabble.com/file/p25447219/model_hydrographs.txt model_hydrographs.txt http://www.nabbl

Re: [R] X-axis range

2009-09-14 Thread Chris Li
ct.org >> [mailto:r-help-boun...@r-project.org] On Behalf Of Chris Li >> Sent: Tuesday, 15 September 2009 3:22 p.m. >> To: r-help@r-project.org >> Subject: [R] X-axis range >> >> >> Hi all, >> >> I would like to change the x-axis of m

Re: [R] X-axis range

2009-09-14 Thread Peter Alspach
15 September 2009 3:22 p.m. > To: r-help@r-project.org > Subject: [R] X-axis range > > > Hi all, > > I would like to change the x-axis of my graphs from year 1998 > to 2008 with an interval of 5 (i.e. 1998, 2003, 2008). Any > help would be greatly appre

[R] X-axis range

2009-09-14 Thread Chris Li
Hi all, I would like to change the x-axis of my graphs from year 1998 to 2008 with an interval of 5 (i.e. 1998, 2003, 2008). Any help would be greatly appreciated. http://www.nabble.com/file/p25447219/model_hydrographs.txt model_hydrographs.txt http://www.nabble.com/file/p25447219/bore_sample.t

Re: [R] X-axis labels not displayed when changing ylim

2009-07-10 Thread Sarah Bonnin
CC: r-help@r-project.org Asunto: Re: [R] X-axis labels not displayed when changing ylim On Thu, 09-Jul-2009 at 05:36PM +0200, Sarah Bonnin wrote: > Dear R users, > > I am encountering a x axis labeling problem on quite basic plots... > I use the following code which displays the label

Re: [R] X-axis labels not displayed when changing ylim

2009-07-10 Thread Jim Lemon
Sarah Bonnin wrote: Dear R users, I am encountering a x axis labeling problem on quite basic plots... I use the following code which displays the labels on the x-axis with a 45 degrees angle: p <- plot(myobject1, type="b", col="red",cex=1, lwd=2, axes=FALSE, ann=FALSE, ylim=c(0,70)) title(m

Re: [R] X-axis labels not displayed when changing ylim

2009-07-09 Thread Patrick Connolly
On Thu, 09-Jul-2009 at 05:36PM +0200, Sarah Bonnin wrote: > Dear R users, > > I am encountering a x axis labeling problem on quite basic plots... > I use the following code which displays the labels on the x-axis with a > 45 degrees angle: > > p <- plot(myobject1, type="b", col="red",cex=1, lwd=

[R] X-axis labels not displayed when changing ylim

2009-07-09 Thread Sarah Bonnin
Dear R users, I am encountering a x axis labeling problem on quite basic plots... I use the following code which displays the labels on the x-axis with a 45 degrees angle: p <- plot(myobject1, type="b", col="red",cex=1, lwd=2, axes=FALSE, ann=FALSE, ylim=c(0,70)) title(main="title", font.mai

Re: [R] x axis label overlap

2008-10-01 Thread Jim Lemon
CLERC Thomas wrote: Hello, On the figure produced by this code: ## # données Bacher 2001 y .bacher = c (69,18,13,12,5,4,3,3,13,9,7,6,4,2,69,19,12,40,5,2,2,2,51,18,8,31,9,3,2,2 ) x.bacher=c(seq(1:6),8,9,seq(9,13), 15,15,16,17,17,18,19,20,22,22,23,25,25,26,27,28,30) # graphe #quart

[R] x axis label overlap

2008-09-29 Thread CLERC Thomas
Hello, On the figure produced by this code: ## # données Bacher 2001 y .bacher = c (69,18,13,12,5,4,3,3,13,9,7,6,4,2,69,19,12,40,5,2,2,2,51,18,8,31,9,3,2,2 ) x.bacher=c(seq(1:6),8,9,seq(9,13), 15,15,16,17,17,18,19,20,22,22,23,25,25,26,27,28,30) # graphe #quartz(width=2.12,height=2.

Re: [R] x-axis with month and year

2008-08-15 Thread Gabor Grothendieck
nal Message- > From: Gabor Grothendieck [mailto:[EMAIL PROTECTED] > Sent: Friday, August 15, 2008 2:06 PM > To: Schreiber, Stefan > Cc: r-help@r-project.org > Subject: Re: [R] x-axis with month and year > > Check out the zoo package: > > Lines <- "Date,CMI >

Re: [R] x-axis with month and year

2008-08-15 Thread Schreiber, Stefan
To: Schreiber, Stefan Cc: r-help@r-project.org Subject: Re: [R] x-axis with month and year Check out the zoo package: Lines <- "Date,CMI Jan-93,3.24 Feb-93,-2.56 Dec-06, 8.25" library(zoo) z <- read.zoo(textConnection(Lines), FUN = as.yearmon, format = "%b-%y", sep

[R] x axis with multhist

2008-08-15 Thread Nathan Clement
I have lots of data that needs to be viewed as a histogram, and I've found the multhist package to work quite nicely--for the most part. The only problem is that I can't figure out a way to get the x-axis to make any logical sense. I have a data set with exactly 26 different values, but w

Re: [R] x-axis with month and year

2008-08-15 Thread Gabor Grothendieck
Check out the zoo package: Lines <- "Date,CMI Jan-93,3.24 Feb-93,-2.56 Dec-06, 8.25" library(zoo) z <- read.zoo(textConnection(Lines), FUN = as.yearmon, format = "%b-%y", sep = ",", header = TRUE) plot(z) On Fri, Aug 15, 2008 at 1:12 PM, Schreiber, Stefan <[EMAIL PROTECTED]> wrote: > Hey li

Re: [R] x-axis with month and year

2008-08-15 Thread Ben Bolker
Schreiber, Stefan ales.ualberta.ca> writes: > > Hey list! > > I have a csv-file with two variables: (Date,CMI) > > Date,CMI > Jan-93,3.24 > Feb-93,-2.56 > . > . > . > Dec-06, 8.25 > > When I want to plot this dataset, R is sorting the date in alphabetical > order. Is there any way to te

[R] x-axis with month and year

2008-08-15 Thread Schreiber, Stefan
Hey list! I have a csv-file with two variables: (Date,CMI) Date,CMI Jan-93,3.24 Feb-93,-2.56 . . . Dec-06, 8.25 When I want to plot this dataset, R is sorting the date in alphabetical order. Is there any way to tell R not to do it? I know it is probably an easy issue but I couldn't find a solu

[R] x-axis

2008-01-28 Thread mohamed nur anisah
Hi, I want to plot a graph and here is my code: ec<-rep(0,length(e)) fc<-rep(0,length(f)) plot(e,ec,type="p",col=1,pch=19) points(f,fc,col=2,pch=20) legend(1.0e+08,1.0,c("dog", "human"),text.col="green4",pch=c(19,20),col=c(1,2)) my major problem here is the x-axis is too lar

Re: [R] X Axis labeling with class zoo

2007-10-25 Thread Gabor Grothendieck
You can pass oma= and mar= to plot.zoo. This is apparent from the argument list in ?plot.zoo or from args(plot.zoo) On 10/25/07, John Theal <[EMAIL PROTECTED]> wrote: > Hi Gabor, > > Sorry to bother you again, I'm having trouble controlling the margins > on a multiplot window. Using a previous e

Re: [R] X Axis labeling with class zoo

2007-10-25 Thread John Theal
Hi Gabor, Sorry to bother you again, I'm having trouble controlling the margins on a multiplot window. Using a previous example you posted in the archives: library(zoo) # test data z <- structure(c(21,34,33,41,39,38,37,28,33,40), index = structure(c(8044,8051,8058,8065,8072,

Re: [R] X Axis labeling with class zoo

2007-10-24 Thread Gabor Grothendieck
Use the panel= argument as shown in the examples section of ?plot.zoo On 10/24/07, John Theal <[EMAIL PROTECTED]> wrote: > I'm using zoo to plot multiple data series, however, I am having > trouble adjusting the x-axis labeling on a multiple series plot. For > example, if I create a zoo > object

[R] X Axis labeling with class zoo

2007-10-24 Thread John Theal
I'm using zoo to plot multiple data series, however, I am having trouble adjusting the x-axis labeling on a multiple series plot. For example, if I create a zoo object that consists of a date series and a numerical series and then plot it, I can adjust the x axis labeling using axis.Date(1,

Re: [R] x-axis order

2007-09-17 Thread jim holtman
But not necessarily performance. Look at the code for 'seq' and 'seq_along'. Time difference may be small, but keystrokes are done only once. On 9/17/07, Patrick Connolly <[EMAIL PROTECTED]> wrote: > On Fri, 14-Sep-2007 at 02:18PM -0400, jim holtman wrote: > > |> This should do what you want. >

Re: [R] x-axis order

2007-09-17 Thread Patrick Connolly
On Fri, 14-Sep-2007 at 02:18PM -0400, jim holtman wrote: |> This should do what you want. |> |> x<-c(26:52,1:25) |> y<-rnorm(52)+1:52 |> |> plot(seq_along(x), y, xaxt='n') |> axis(1, at=seq_along(x), labels=x) And if you have to economize on keystrokes, seq(x) will achieve the same as seq_alon

Re: [R] x-axis order

2007-09-14 Thread jim holtman
This should do what you want. x<-c(26:52,1:25) y<-rnorm(52)+1:52 plot(seq_along(x), y, xaxt='n') axis(1, at=seq_along(x), labels=x) On 9/14/07, Gustaf Rydevik <[EMAIL PROTECTED]> wrote: > Hi all, > > I have a time series which contain data collected weekly from week 26 > to week 25 the followi

[R] x-axis order

2007-09-14 Thread Gustaf Rydevik
Hi all, I have a time series which contain data collected weekly from week 26 to week 25 the following year. How do I plot this data, so that the x-axis is displaying the week numbers, ordered as in the data? Thanks in advance, Gustaf --- x<-c(26:52,1:25) y<-rnorm(52)+1:52 plot(x,y) ## How do