August 17, 2018 10:24 PM, "Rolf Turner" wrote:
> On 18/08/18 02:37, David L Carlson wrote:
>
>> Notice below that your message is substantially scrambled. R-Help is a
>> plain text only list so you should set your email client to produce plain
>> text messages.
Apologies, forgot to change the
Hi citc,
Try this:
geac<-matrix(c(9,9,8,8,8,23,23,23,23,22,27,27,27,25,24,
19,19,19,20,20,17,17,17,18,19,8,8,8,9,9,2,2,3,3,3),ncol=5,byrow=TRUE)
library(plotrix)
barp(geac,names.arg=2014:2018,main="A level grades chemistry",
xlab="Year",ylab="Percentage of each grade",ylim=c(0,30),
col=c("white
On 18/08/18 02:37, David L Carlson wrote:
Notice below that your message is substantially scrambled. R-Help is a
plain text only list so you should set your email client to produce plain text
messages.
The best place to start is with the manual page for the barplot() function:
?barplot or h
lp@r-project.org
Subject: [R] bar plot add space to group data
R-users,
Can someone please advise how to improve the code below that was used to
produce the graph shown at the following hyperlink
(https://chemistryinthecity.neocities.org/content/entry1808.html#17)? The
request is to add space between
Using the lattice package would provide an easy way to distinguish years, by
putting them in different panels. Lattice would also help avoid some other
features of this graph that, in my opinion, are suboptimal. See Tufte or
Cleveland.
Chris Ryan
--
Sent from my Android device with K-9 Mail.
R-users,
Can someone please advise how to improve the code below that was used to
produce the graph shown at the following hyperlink
(https://chemistryinthecity.neocities.org/content/entry1808.html#17)? The
request is to add space between the annual data groups.
barplot(gceac[,3], xlab='year',
On Thu, 9 Oct 2014 11:18:43 PM Franklin Mairura wrote:
> Please help, it possible to make an r means barplot in R using base,
where
> there are more than 2 factors and not with lattice, Franklin.
>
Hi Franklin,
Have a look at the barNest function in the plotrix package.
Jim
Please help, it possible to make an r means barplot in R using base, where
there are more than 2 factors and not with lattice, Franklin.
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/lis
On Thu, 19 Jun 2014 01:42:30 PM message wrote:
> Readers,
>
> For data set:
>
> a, 90, 10
> b, 60, 40
> c, ,
> d, , 50
>
> A plot was attempted:
>
> dataset<-as.matrix(read.csv("datafile.csv",header=FALSE))
> barplot<-(dataset,horiz=TRUE)
>
> A warning message is returned, about NAs introduced
> dataset<-as.matrix(read.csv("datafile.csv",header=FALSE))
You should always inspect the dataset immediately after reading it in, before
doing other manipulations on it. Converting data from one format to
another is always going to be error-prone. Plotting it, say with
pairs() or just plot(), i
On 19 Jun 2014, at 15:42, message wrote:
> Readers,
>
> For data set:
>
> a, 90, 10
> b, 60, 40
> c, ,
> d, , 50
>
> A plot was attempted:
Wonder who attempted this. :-)
>
> dataset<-as.matrix(read.csv("datafile.csv",header=FALSE))
Look at your dataset; I’d say it is clearly not what you w
Readers,
For data set:
a, 90, 10
b, 60, 40
c, ,
d, , 50
A plot was attempted:
dataset<-as.matrix(read.csv("datafile.csv",header=FALSE))
barplot<-(dataset,horiz=TRUE)
A warning message is returned, about NAs introduced by coercion and an
undesirable graph. The desired output is something simi
Hi R-helpers,
Can anyone help me giving instructions/package sources to make a simple bar
plot with mean and standard error of variables [Orange colour (which has
four PCs) and Irid colour (which has two PCs)] that I'd like to plot in
x-axis and the values in y-axis? The diet should be as legend
>> You have continuous variables on x so I used scale_x_continuous for
> >> changing the ticks and adding labels. You can modify angle, size, etc
> with
> >> theme.
> >>
> >>
> >> rect_MNL_Delta<- data.frame(
> >> xmin = c(1, 3
Hi Jim,
Thank you very much. I have started another conversation in the ggplot
list. My current code is
plot_data <- data.frame(
xmin = c(1, 1.5, 3, 3.5, 5, 5.5, 7, 7.5, 9, 9.5, 11, 11.5, 13, 13.5)
, ymin = c(16.7026, 17.20, 14.9968, 16.32, 16.0630, 15.86, 17.7510, 18.12,
-5.01694, -8.86, -.44
On 05/21/2013 12:54 AM, Xianwen Chen wrote:
Hi Jim,
Thank you for the suggestion. I think overlapped rectangles will well
present the message. I'm now trying ggplot2.
Here is the code:
require(ggplot2)
rect_MNL_Delta <- data.frame(
xmin <- c(1, 3, 5, 7, 9, 11, 13),
xmax <- xmin + 1,
ymin <- c(
Hi Jim,
Thank you for the suggestion. I think overlapped rectangles will well
present the message. I'm now trying ggplot2.
Here is the code:
require(ggplot2)
rect_MNL_Delta <- data.frame(
xmin <- c(1, 3, 5, 7, 9, 11, 13),
xmax <- xmin + 1,
ymin <- c(16.7026, 14.9968, 1
On 05/19/2013 09:19 AM, Xianwen Chen wrote:
Hi,
I want to plot grouped bars to compare 95% confidence interval estimates
from two models. Each bar represents a 95% confidence interval estimate
of a coefficient from one of the two models. Each group represents
confidence interval estimates of the
Hi,
I want to plot grouped bars to compare 95% confidence interval estimates
from two models. Each bar represents a 95% confidence interval estimate
of a coefficient from one of the two models. Each group represents
confidence interval estimates of the same coefficient from the two models.
I
On 20.10.2011 22:29, Henri-Paul Indiogine wrote:
Hi Uwe!
2011/10/20 Uwe Ligges:
arrange it outside by, e.g. increasing the size of margins (see argument
"mar" in ?par) and place a separate legend (see ?legend) into the margins
(see xps argument in ?par).
I could not find 'xps', do you mean
Hi Uwe!
2011/10/20 Uwe Ligges :
> arrange it outside by, e.g. increasing the size of margins (see argument
> "mar" in ?par) and place a separate legend (see ?legend) into the margins
> (see xps argument in ?par).
I could not find 'xps', do you mean 'xpd'?
This is what I have so far:
> par(mar=
Hi Uwe!
2011/10/20 Uwe Ligges :
> names.arg = rep(NA, nrow(file.codes))
Yes, that works beautifully. Danke schoen!
Henri-Paul
--
Henri-Paul Indiogine
Curriculum & Instruction
Texas A&M University
TutorFind Learning Centre
Email: hindiog...@gmail.com
Skype: hindiogine
Website: http://people
On 20.10.2011 18:58, Henri-Paul Indiogine wrote:
Hi Uwe! Thanks for the feedback. However, now the graph does not
draw the y-axis nor labels and gives the following error message:
Error in barplot.default(t(file.codes), beside = FALSE, names.arg = NA, :
incorrect number of names
nam
Hi Uwe! Thanks for the feedback. However, now the graph does not
draw the y-axis nor labels and gives the following error message:
Error in barplot.default(t(file.codes), beside = FALSE, names.arg = NA, :
incorrect number of names
This is the R code now:
barplot(t(file.codes), beside = FAL
On 20.10.2011 18:03, Henri-Paul Indiogine wrote:
Hi!
I have 2 problems in drawing a stacked bar plot:
(1) This is a stacked bar plot with more than 100 bars next to each
other. So there should not be names at the bottom of the bars because
the bars are too narrow.I tried arg.names=NULL
Hi!
I have 2 problems in drawing a stacked bar plot:
(1) This is a stacked bar plot with more than 100 bars next to each
other. So there should not be names at the bottom of the bars because
the bars are too narrow.I tried arg.names=NULL but that does not
work because R uses the row names f
On Jul 22, 2010, at 2:13 PM, Gregory Gilbert wrote:
R Community,
I have a stupid little barplot I am trying to construct (Windows XP,
R.11.1,
32-bit). Whenever I run it my bars run below the horizontal axis.
Can anyone
(1) reproduce this and (2) offer a solution?
I'm not sure I should b
R Community,
I have a stupid little barplot I am trying to construct (Windows XP, R.11.1,
32-bit). Whenever I run it my bars run below the horizontal axis. Can anyone
(1) reproduce this and (2) offer a solution? Rather simplistic code follows
(I am new to the community)> Thanks for your help!
Gre
Sunita Patil wrote:
Hello Peter
Sorry I forgot to paste the error for tittle it was as follows
*Error in title(main = "Year Vs StudentsPassed") : plot.new has not been
called yet*
Well, that makes sense. You can't put a title on a
plot that doesn't exist.
-Peter
Regards
Our Thoughts h
Hello Peter
Sorry I forgot to paste the error for tittle it was as follows
*Error in title(main = "Year Vs StudentsPassed") : plot.new has not been
called yet*
Regards
Our Thoughts have the Power to Change our Destiny.
Sunita
Sent from Pune, MH, India
On Tue, Feb 9, 2010 at 11:22 PM, Peter E
Here is a simple 3-step solution:
1. type ?barplot
2. find the section labelled 'Arguments'
3. carefully read what each argument means/does
Voila, problem(s) solved.
(It was good to include some data, but not so good
to say that title(...) is giving "an error". No need
to be secretive about the
Hello
(this might be a very simple question)
My data is as follows (table name is student)
YearStudentsPassed
1 2000300
2 2001360
3 2002450
4 2003450
5 2004270
6 2005280
7 2006400
8 2007270
I want to plot a barplot so for this
If I use barplot(s
. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.s...@imail.org
801.408.8111
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
> project.org] On Behalf Of phoebe kong
> Sent: Wednesday, February 11, 2009 11:11 AM
> To: r-help
>
on 02/11/2009 12:10 PM phoebe kong wrote:
> Hi all,
>
> I would like to construct plot of the distribution of N, where N range
> from 1 to 10. I couldn't just use the hist(), as I want the categories
> for the bars are: 1, 2, 3, 4, >=5. So this will be a bar plot with 5
> bars, and the height of t
Hi all,
I would like to construct plot of the distribution of N, where N range
from 1 to 10. I couldn't just use the hist(), as I want the categories
for the bars are: 1, 2, 3, 4, >=5. So this will be a bar plot with 5
bars, and the height of the bar will be the frequency of N. (eg bar#1
will be t
t: Monday, January 19, 2009 5:37 PM
> To: Greg Snow
> Cc: hadley wickham; R-help
> Subject: Re: [R] Bar Plot ggplot2 Filling bars with cross hatching
>
> what is your suggestion for distinguishing between many bars without
> color? I have grown up in the time of standarized te
>>I disagree. Grey levels suck; labels are a kludge. It is an issue
>>for ``many'' == 2, for which crosshatching works perfectly.
>>
>
> Could you show an example?
>
> There are several BW examples in example(barplot), and the gray ones look
> better on screen than the cross-hatch
tical Data Center
Intermountain Healthcare
greg.s...@imail.org
801.408.8111
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
project.org] On Behalf Of hadley wickham
Sent: Thursday, January 15, 2009 10:55 AM
To: stephen sefick
Cc: R-help
Subject: Re: [R] Bar P
al Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
project.org] On Behalf Of hadley wickham
Sent: Thursday, January 15, 2009 10:55 AM
To: stephen sefick
Cc: R-help
Subject: Re: [R] Bar Plot ggplot2 Filling bars with cross hatching
Hi Stephen,
#I am putting a test together
;.
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.s...@imail.org
801.408.8111
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
project.org] On Behalf Of hadley wickham
Sent: Thursday, January 15, 2009 10:55 AM
To: stephen
If classic graphics is ok try this which uses hatches and different
shades of grey:
barplot(lizards, names.arg = color, col = grey(c(.2, .5, 1)), density = 20,
angle = c(45, -45, 0), legend = color)
On Wed, Jan 14, 2009 at 10:18 PM, stephen sefick wrote:
> #I am putting a test together fo
Thursday, January 15, 2009 10:55 AM
To: stephen sefick
Cc: R-help
Subject: Re: [R] Bar Plot ggplot2 Filling bars with cross hatching
Hi Stephen,
#I am putting a test together for an introductory biology class
and I
would like to put different cross hatching inside of each bar
for the
bar
ry 15, 2009 10:55 AM
To: stephen sefick
Cc: R-help
Subject: Re: [R] Bar Plot ggplot2 Filling bars with cross hatching
Hi Stephen,
#I am putting a test together for an introductory biology class and I
would like to put different cross hatching inside of each bar for the
bar plot below
ggplot2 uses the
rg
> 801.408.8111
>
>
>> -Original Message-
>> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
>> project.org] On Behalf Of hadley wickham
>> Sent: Thursday, January 15, 2009 10:55 AM
>> To: stephen sefick
>> Cc: R-help
>> S
.org
801.408.8111
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
> project.org] On Behalf Of hadley wickham
> Sent: Thursday, January 15, 2009 10:55 AM
> To: stephen sefick
> Cc: R-help
> Subject: Re: [R] Bar Plot ggplot2 Fillin
This will be fixed in the next version, but until then you can do
title = "Aquarium\n"
Hadley
On Wed, Jan 14, 2009 at 9:24 PM, stephen sefick wrote:
> Also notice that the q in Aquarium is hidden. Is there a way to make
> this not happen?
> thanks
>
> Stephen Sefick
>
> On Wed, Jan 14, 2009 at
Hi Stephen,
> #I am putting a test together for an introductory biology class and I
> would like to put different cross hatching inside of each bar for the
> bar plot below
ggplot2 uses the grid package to do all the drawing, and currently
grid doesn't support cross-hatching, so unfortunately the
Also notice that the q in Aquarium is hidden. Is there a way to make
this not happen?
thanks
Stephen Sefick
On Wed, Jan 14, 2009 at 10:18 PM, stephen sefick wrote:
> #I am putting a test together for an introductory biology class and I
> would like to put different cross hatching inside of each
#I am putting a test together for an introductory biology class and I
would like to put different cross hatching inside of each bar for the
bar plot below
color <- c("Brightly Colored", "Dull", "Neither")
lizards <- c(277, 70, 3)
liz.col <- data.frame(color, lizards)
qplot(color, lizards, data=liz
on 01/13/2009 08:43 AM joe1985 wrote:
> Hello
>
> I have a problem that i ant make a Bar plot like the one i have tried to
> illustrate below (made in paint);
> http://www.nabble.com/file/p21437080/LG5%2Bgraf%2Bredigeret.jpg
>
> http://www.nabble.com/file/p21437080/LG5%2Bgraf%2Bredigeret.JPG
>
Hello
I have a problem that i ant make a Bar plot like the one i have tried to
illustrate below (made in paint);
http://www.nabble.com/file/p21437080/LG5%2Bgraf%2Bredigeret.jpg
http://www.nabble.com/file/p21437080/LG5%2Bgraf%2Bredigeret.JPG
LG5+graf+redigeret.JPG
Where each line represents a
Cheers Marc, it works perfectly now. Thanks for your help!
Marc Schwartz wrote:
>
> You can generalize the approach by using something like:
>
> ...
> ylim = c(0, max(DF$TACC, DF$Catch) * 1.1)
> ...
>
>
> That would allow you to use the max value of the two columns, multiplied
> by a fud
You can generalize the approach by using something like:
...
ylim = c(0, max(DF$TACC, DF$Catch) * 1.1)
...
That would allow you to use the max value of the two columns, multiplied
by a fudge factor, which you can adjust as needed. In this case,
increasing the y axis range by 10% to make room.
Thanks Marc, that has helped a lot. Say, for example, in a situation where I
can't find out the highest value, is there any way to get R to automatically
detect this and adjust the axis accordingly? I am planning to do this for
many different stocks at once and dont wan't to have to define the h
on 01/06/2009 09:07 PM jimdare wrote:
> Hi Everyone,
>
> Have created a bar plot of the data below using the following code:
> barplot(TACC,space=0,names.arg=Year). I now want to add a series of
> connected points to represent the catch. I tried to do this using
> line(Catch) or points(Catch), h
Hi Everyone,
Have created a bar plot of the data below using the following code:
barplot(TACC,space=0,names.arg=Year). I now want to add a series of
connected points to represent the catch. I tried to do this using
line(Catch) or points(Catch), however both of these commands result in each
data
--- Jim Lemon <[EMAIL PROTECTED]> wrote:
> John Kane wrote:
> > I think you're going to find that barchart with
> that
> > many values in a bar is going to be pretty well
> > uninterpretable.
> >
> > Jim Lemon gives the desired barchart but it is
> very
> > difficult to read.
> >
> > Steali
John Kane wrote:
> I think you're going to find that barchart with that
> many values in a bar is going to be pretty well
> uninterpretable.
>
> Jim Lemon gives the desired barchart but it is very
> difficult to read.
>
> Stealing his code to create the same matrix I'd
> suggest may be lookin
I think you're going to find that barchart with that
many values in a bar is going to be pretty well
uninterpretable.
Jim Lemon gives the desired barchart but it is very
difficult to read.
Stealing his code to create the same matrix I'd
suggest may be looking at a dotchart. I'm not sure if
t
Winkel, David wrote:
> All,
>
>
>
> I have a question regarding colors in bar plots. I want to stack a
> total of 18 cost values in each bar. Basically, it is six cost types and
> each cost type has three components- direct, indirect, and induced
> costs. I would like to use both solid color
> I have a question regarding colors in bar plots. I want to stack a
> total of 18 cost values in each bar. Basically, it is six cost types and
> each cost type has three components- direct, indirect, and induced
> costs. I would like to use both solid color bars and bars with the
> slanted lines
All,
I have a question regarding colors in bar plots. I want to stack a
total of 18 cost values in each bar. Basically, it is six cost types and
each cost type has three components- direct, indirect, and induced
costs. I would like to use both solid color bars and bars with the
slanted lines
library(gplots)
?barplot2
should give you what you want.
--- Katherine Jones <[EMAIL PROTECTED]>
wrote:
> Apologies if this has been asked before. I am having
> trouble
> understanding the R mailing list never mind R!
>
> I am relatively new to R having migrated from
> Minitab and SPSS. I
library(gplots)
?barplot2
should give you what you want.
--- Katherine Jones <[EMAIL PROTECTED]>
wrote:
> Apologies if this has been asked before. I am having
> trouble
> understanding the R mailing list never mind R!
>
> I am relatively new to R having migrated from
> Minitab and SPSS. I
Hi Katherine,
If you have the original data, you can use the function barplot.CI from
the package sciplot which will calculate the means and CI's for you.
Examples are at: http://mutualism.williams.edu/sciplot
If you have the means and CI's already calculated, the following
function will do what
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Katherine Jones
> Sent: Monday, October 22, 2007 2:04 PM
> To: [EMAIL PROTECTED]
> Subject: [R] Bar plot with error bars
>
> Apologies if this has been asked before. I am having
Apologies if this has been asked before. I am having trouble
understanding the R mailing list never mind R!
I am relatively new to R having migrated from Minitab and SPSS. I
have managed to do some more complicated statistics such as
hierarchical partitioning of variance on an 80,000 record
67 matches
Mail list logo