Displaying 20 results from an estimated 11000 matches similar to: "Display values in piechart/barplot"
2002 Feb 07
2
FW: layout and piechart diameter problem (PR#1300)
Third try...
> -----Original Message-----
> From: Warnes, Gregory R
> Sent: Tuesday, February 05, 2002 4:12 PM
> To: 'R-bugs'
> Subject: layout and piechart diameter problem
>
>
> I've been using layout to create some graphics pages which include pie
> charts. (NB: No piechart arguments please, the main chart on the page is
> a proper bar chart
2010 Dec 08
2
piechart
dear R-community,
Is it possible to have one pie chart of a large radius and then a pie
chart with smaller radius placed on top of the larger so the centers of
the two pie charts coincide?
I managed to place a filled circle with smaller radius in the piechart,
see below.
Thanks in advance, Sybille
pie(rep(1,12), col=rainbow(24), radius=0.9, labels=
2010 Nov 23
1
specifying colours in a ggplot2 piechart
Someone was asking how to do a 16 category piechart in OpenOffice Calc and it appears that it can not be done (which we, probably, should be happy about) but I thought that I'd try it in ggplot2.
It works but I then thought I'd like to make the colours more distinctive but fro some reason I don't seem to be able to use manually assigned colours.
Can anyone suggest where I'm
2009 May 05
4
Create Pie chart from .csv file
Hi all,
I am looking to create a pie chart from a given column in a .csv file.
My class variables are as follows:
entry_type, uniquekey, types, title, url, abstract, journal, author, month,
year, howpublished
So say I want to export a pie chart that groups together all entries under
'types' e.g. 3 x statistics 2x education etc. Im looking to have a piechart
represent this
2011 Feb 25
1
color code in loop for piecharts plotting
Hi,
I am using this loop
par(mfrow=c(3,3))
annos<-c(2001:2007,2009)
for (i in annos) {
t<-subset(masia,YEAR==i)
t$FAMILIA<-drop.levels(t$FAMILIA)
pie(table(t$FAMILIA),main=i)
}
To make piecharts of species composition among years (my data frame is
called "masia"). So I get 1 piechart of the families that we have found in
our survey each year. We don't have always
2010 Jan 25
1
Postscript graphs
Hi,
I tried to use the following commands to create a postscript pie chart using R:
postscript(file="H:/piechart.eps")
# then I wrote my commands to generate the pie chart
pie(filename,labels=,col=,radius=0.6)
dev.off()
After I ran those commands, instead of giving the pie chart, it showed
> dev.off()
postscript
2
>
In my H drive, there is a file called
2003 Jan 17
2
barplot plotting problem
Hi,
Is there any equivalent of type="n" when constructing barplots which will
still construct the axes (plot=F, as it says doesn' plot anything at all).
Alternatively I tried setting col="white" and border="white" but the border
command does not seem to be operational. True??
Any other ideas? What I'm actually trying to do is construct vertical
abline()'s
2003 Dec 23
1
How can I put error bars on a barplot() ?
Hi all,
I am a relatively new R user... trying to put error bars (from SD values) on my data represented with barplot(). But I can't find any function or instruction to do so.
Is there an easier way to do this than using segments() as I saw in an example in the R reference manual ? Then, can I define there graphical apparence ?
Thanks for help.
Regards
Olivier BUHARD
[[alternative HTML
2001 Feb 04
1
Linux shared library problem (PR#838)
Full_Name: Daniel Egloff
Version: 1.2.1
OS: Linux Redhat 7.0
Submission from: (NULL) (212.35.34.200)
Externals in the shared library libc.so.6 not found. See the
following R session, with the abort message at the end.
> demo(graphics)
demo(graphics)
---- ~~~~~~~~
Type <Return> to start :
> opar <- par(ask = interactive() && (.Device %in%
2003 Feb 03
4
Overlaying a moving average curve on top of a barplot
I''m using standard barplot (Windows version 1.6.2 of R) to represent a certain weekly metric "v" and I would like to properly overlay on top of it its moving average "mean.8" (window of 8 weeks). I must be doing something wrong since the moving average (using "lines") doesn''t overlay properly, i.e., both x-scales do not match!
...
2006 Oct 01
1
pie() with only 180°
I want to plot the results of today's elections in Austria in this
typical 180?-piechart (and not 360?).
Unfortunantely pie() has just an argument "init.angle" and no "end.angle".
Perhaps you know a workaround.
Thomas
2012 Mar 02
2
Spacing of text does not match spacing of bars in barplot
I have a very standard barplot. My labels are too long to be printed
horizontally under each bar, so I am using text to put the labels on a 45
degree slant.
However, the labels are spaced more narrowly than the bars, so on an 8
vertical bar plot, the end of the eighth label is lined up with the seventh
bar.
Preferably I don't want to do every text label separately (I'm having this
2010 Mar 24
2
Multi-panel Pie Charts.
Hi All,
I'm trying to find out a way to plot multi-panel pie charts. It may not be
the best way to present data, but I would still need one.
1. Is anyone aware of some in-built script/function which can do this for
me. I'm aware of one given in Deepayan's book, but anything apart from this?
2. I tried using Deepayan's script on following data set but it doesn't seem
to work
2007 Mar 01
2
barplot2, gap.barplot
Hello,
I try to handle a simple bar-plot, but it turns out to be not as simple
as I thought.
1) I have created a .dat-File, e.g. test.dat:
DATA DATA-SEM
2.2 0.32
6.2 1.30
12.7 1.61
48.6 3.08
4.1 0.86
4.5 0.32
1.5 1.13
1.2 1.08
The first row is the data represented by bars. The second row deals with
the Standard Error of Mean. The lines correspond to time-intervals of
experiments.
2) I now
2005 May 30
3
values of bars in barplot
Hi,
I couldn't find how to have the values written on the
top of each bar in a barplot. When using hist(), it is
possible to use labels=T, but this option does not
seem to exist for barplot().
Is there a trick I could use to do that ?
Thanks to all
Luc
2006 Mar 06
2
barplot names.arg
How can i set a rotation for the names.arg in barplot?
1999 Aug 26
1
error bars on barplots
Hello again
I'm trying to put error bars onto a barplot. I've tried something that
Bill Simpson suggested a while ago, ie:
x<-c(1,2,3,4,5)
y<-c(1.1, 2.3, 3.0, 3.9, 5.1)
ucl<-c(1.3, 2.4, 3.5, 4.1, 5.3)
lcl<-c(.9, 1.8, 2.7, 3.8, 5.0)
plot(x,y, ylim=range(c(lcl,ucl)))
arrows(x,ucl,x,lcl,length=.05,angle=90,code=3)
#or
segments(x,ucl,x,lcl)
but I can't get it to work on a
2005 Jun 30
2
How to rotate the axisnames in a BARPLOT
Hi all,
- how can I do a barplot with rotated axis labels? I've seen the example for
just a plot in the FAQ, but I'll missing the coordinates to plot my text at
the right position beneath the bars.
Is there any (easy?) solution?
- how can I set the y-axis in a barplot to logarithmic scale?
Many thanks in advance!
Best Regards
Tom
--
2009 Feb 09
2
Help on BarPlot
Dear all
As a new user of R, can someone please help me with the following
I have created a programme to analyse laboratory data and one of the graphs is a bar plot of 'Z' scores.
On the bar plot I am using the following line to plot some results
barplot (zb[,c("ZBW")], ylim = c(-6,6), names.arg=zb[,c("LabNo")],xlab="Lab Code Number", cex.names = .5 ,
2005 Jan 13
1
Space between bars in barplot
Hi
I am trying to understand the "space" argument to barplot() and I think
it is not working as stated. The docs say:
space: the amount of space (as a fraction of the average bar width)
left before each bar.
Which means that I can pass a vector, the same length as the no. of
bars, and the nth element of that vector will be the space left before
the nth bar. This is