Displaying 20 results from an estimated 10000 matches similar to: "stack charts right on top of each other"
2008 Jan 24
2
plot help
Hi,
Suppose I already have two plots on the same screen, and I want to draw
lines in each of them. Is that possible in R? It seems that once you have
two plots on the screen, you can only draw lines in the the last plot, never
the 1st. Here is what I mean:
#some data
y1=rnorm(1:3)
y2=rnorm(1:3)
#draw two plots on the same screen
par(mfrow=c(2,1),oma = c(6, 0, 5, 0))
par(mar=c(0, 5.1, 0, 5.1))
2008 Apr 07
2
How to add background color of a 2D chart by quadrant
Hi,
I have a 2D chart that is divided into four quadrants, I, II, III, IV:
plot(1:10,ylim=c(0,10),xlim=c(0,10),type="n")
abline(v=5,h=5)
text(x=c(7.5,7.5,2.5,2.5),y=c(2.5,7.5,7.5,2.5),labels=c("I","II","III","IV"))
I would like to fill each quadrant with a background color unique to the
quadrant. Does anyone know how to do this in R?
Thanks,
--
2011 Jan 31
1
arranging pie charts in a matrix layout with row/col labels
Hi, I have a vector of data, that I group based on two factors via
tapply. For each such grouping I would like to plot a pie chart. I
can layout these pie charts in a matrix layout, correpsonding to the
levels of the two factors. But I am getting stuck on how to label the
rows and colums. My current approach looks like this:
x <- data.frame(obs=sample(c('low', 'high'),100,
2011 Jun 23
3
help- subtitles for multiple charts
Hello, I have a problem with my script. I don'y know how to apply subtitles.
I have 9 charts per page (for combination of 3 blocks and 3 treatments). I
want to have subtitles for this interaction (e.g. Block A Trt 1, Block A Trt
2, ...)
MBE$bt<- interaction(MBE$Block,MBE$trt)
par(mfrow=c(3,3))
for(i in unique(MBE$bt)){
ss <- MBE$bt==i
plot(MBE$Year[ss], MBE$DBH[ss])
2005 May 11
3
display two pie-charts
Hey,
i'd like to compose a clock-like looking plot composed out of two
circles, each showing the length of a period (to compare them). first,
to do so, it looked the easiest by using pie(), just puting multiple
pie-charts over each other. the problem is that once the second pie is
drawn, it replaces the first one. does anybody know how to add a second,
smaller pie over an existing one,
2011 May 31
2
OT: Pie charts
We regularly get questions about making pie charts, and frequently
veer off into the philosophical and practical issues surrounding that
form of data graphic: human perception of angles and so on.
So while this isn't an R issue, I thought some of you might appreciate
this brief discussion of the efficacy of pie charts:
http://fakescience.tumblr.com/post/6042293374/understanding-pie-charts
2009 May 01
2
Reccomendation for graphics package
Hello,
What would you recommend for producing publication-quality plots with R?
Built-in graphics, trellis, ggplot2, or something else?
Basic requirements:
- I need to draw line-, box-, density-plots, bar-charts and histograms
- error bars on bar- and box-plots
- easy tiling of multiple plots on a single "page"
Basic R plotting with mfrow and mfcol parameters is not satisfactory
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
2011 Nov 23
2
Bar charts, frequencies known, intervals of varying width
Hi
I would like to plot bar charts in a particular way. The intervals are not
evenly distributed and are in a data frame column called size and the
relative frequencies are in a second column called mass. Both size and mass
are continuous ratio data to all intents and purposes. The data actually
represents sieving of sand where $size is sieve aperture and where $mass is
the amount remaining on
2010 Jul 05
2
Help - Google Charts on Rails Plugin
Hello,
I''m starting at the RR, and I''m trying to use google charts to generate some
graphs in a single plugin in rails. But I''m testing the samples that are
giving errors. I think it must be configuration error. Someone who has used
google charts on rails help me?
Since already thank you!
Juliana.
=================================================================
2005 Feb 13
2
Bubble Plot with Pie Charts
Hi there!
I have seen that someone had this question some years
before, but there
was only a rough answer to it and I was wondering if
actually someone
was able to accomplish it or maybe even wrote a
function...
How do you make a bubble plot where you have pie
charts instead of bubbles?
I have a geographic map and need to plot
attribute-sized pie charts
representing a second attribute at
2010 Apr 20
1
multiple plots problem
hello,
i try to plot 3 graphs which have the same x.axis underneath each other. i'd
like the plots to be aligned without margings between the boxes and draw a
single x axis beneath the lowest plot.
i managed to get the alignment by setting par(mar), but the middle box is
stretched
and i cant't figure out how to get around this. par(pin) was my guess, but
this doesn't do the job
2006 Jul 13
1
PDF and Charts???
I''m facing a problen while developing an app in rails...
How can I generate PDF files and Charts....
I think that maybe a solution would be to have a Tomat running and leave the
task of generate PDF and create dinamyc charts to
Java with Jasper and JFreechart.... but.. I''m not sure how to acomplish
this.
Any ideas on how to use rails and java in the same app.????
I already
2008 Jul 29
2
Panel of pie charts
Hi ,
I am looking to making a panel of pie charts fo some of my dritribution data . I was wondering if there is a way in any R package to write a small script to do so.
Thanks,
Amin
[[alternative HTML version deleted]]
2012 Jun 02
1
mtext bug
Sir,
I have hit a the limits of my understanding of text / par / opar etc...
I have a few related xts data frames which have multiple columns, and have
written a for-loop to make a set of charts - however i do not get any
margin text when i run the loop.
when i test the code outside of the loop the margin text appears - however
when i run the loop the margin text does not appear ... what gives?
2011 Dec 12
1
Help with charting time in seconds as HH:MM:SS on charts
Hello,
I am dealing with data stored in a database as a 'time' object. I
export the data from the database to a text file and utilize the
'time_to_sec()' function of the database to convert the human readable
time (HH:MM:SS) to seconds so that I can use R to do analysis and
create charts of the data. I do not need or use days or dates in the
data, and the data range is from
2009 Sep 19
3
reducing space between charts in lattice graphics
Hi,
I'm trying to create a lattice plot with three xyplots in one vertical
column. I would like to reduce the vertical space between the charts. My
code is below. There seems to be a "between" parameter for lattice.options,
but I can't find any examples. Aside from the data setup, the code is below.
Can anyone provide an example showing how to reduce the white space between
the
2010 Feb 04
6
problems with SPC charts in R
Hi all,
I am using SPC techniques of plotting Xbar, R, S, P and C charts in R.For
this I am using qcc package in R and also using the following document for
reference.
http://www.stat.unipg.it/~luca/Rnews_2004-1-pag11-17.pdf
But while plotting S chart, R chartchart and also C chart I am getting
following errors.
I have plotted the Xbar chart successfully using following command
obj <-
2008 Oct 06
2
Stacked area chart and legends
I have found lots of good advice on this forum about stacked area charts but
I?ve run into problems with the 2 recommended options: stackploy in plotrix
or qplot in ggplot2. I have a many page report that will be in a 2x2 page
format ?par(mfrow=c(2,2))?? and need one of the page components to be a
stacked chart.
I?d prefer to use stackpoly, if possible, but I?m stuck on how to do the
legend in
2006 Apr 27
4
GD2 to Make Charts
I''m just getting started with GD2 and have successfully made a few
dynamic PNGs. I need to make some fairly detailed line graphs on the
fly and I know that GD2 is capable of what I want but I strongly suspect
I''m reinventing the wheel badly. Are there gems or other projects that
help creating complex charts? I''ve used GDChart in the distant past
but I