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
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
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
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
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
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
> 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
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
>
> -
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
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
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
…
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"
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(...)
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
I don't think that is possible with the ggplot2 package. Try lattice or base
graphics?
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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/
--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
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
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
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),
. 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
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
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
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
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
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
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
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
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.
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').
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
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
_
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)
> >
>
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
>
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
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
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
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-
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,
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
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
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.
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
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
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
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
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
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
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=
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
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
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.
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
>
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
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
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
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
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
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
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
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,
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
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,
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.
>
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
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
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
95 matches
Mail list logo