)) +
geom_histogram( position="dodge", stat = "identity", aes(fill =
variable))
##
John Kane
Kingston ON Canada
> -Original Message-
> From: ntfr...@gmail.com
> Sent: Tue, 31 Mar 2015 16:55:56 +0300
&
The error message is very informative. You named a column in the melted
data "Start", and told ggplot to use "start". "start" is a function. R is
case sensitive.
On Tue, Mar 31, 2015 at 8:46 AM, Frederic Ntirenganya
wrote:
> Hi All,
>
> Thanks for the help. I want to plot some of the columns on
Hi John,
Sorry for the mistake I made for providing useless data.
Here I am interest only on Tmin and Tmax columns. I want to use the same
approach with the previous data. I want to plot on the same graph not
separate graph. Thanks
> dput(head(BUTemp))structure(list(Year = c(1971L, 1971L, 1971L,
Hi All,
Thanks for the help. I want to plot some of the columns on the same graph
not all of them. Sorry, I failed to follow the instructions. Here is the
output of *dput()* but I don't know how it works.
> dput(head(data))structure(list(Date = structure(c(-6575, -6209, -5844, -5479,
-5114, -4748
7977758355,
0.439361470235051, 1.2597110753159, -0.795425331570368, 0.974654694801041,
-0.309087884123705, -1.55929705211554, 0.147715827800676, -0.542626171203849,
0.745294589678554, -0.254290052908619, 0.939894889209173)), .Names = c("xx",
"yy", "zzrnorm.20."), row.name
Your data and post is still not provided in one of the formats provided
here:
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example.
I am unsure of what you want to do, but I have made a reproducible example
that might help.
zz <- "Date Number.of.Rain.Days Total.rai
By failing to take the advice given to you, you make it harder to help you.
Learn to control your email program to send plain text, and learn to use the
dput function.
With regard to this function call:
> ggplot(df2, aes(Date,value)) +
I highly recommend using named parameters in the aes call.
Hi All,
Sorry for the shape of data which was not good enough.This is how my
data look like.
I want to plot multiple using ggplot function from a data frame of
many columns. I want to plot only Start.of.Rain..i.,
Start.of.Rain..ii. and Start.of.Rain..iii. and I failed to make it.
What I want is
This is no better because (a) you are still posting using HTML format, and (b)
using printed output loses the internal representation of the data. The dput
function is very helpful for solving this. [1]
[1]
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
--
Hi Stephen,
Sorry, the data came in bad way.
Here is the head of the data.
> head(data)Date Number.of.Rain.Days Total.rain Start.of.Rain..i.
> Start.of.Rain..ii. Start.of.Rain..iii. Start.Rain..iv.
1 1952-01-01 86 1139.95292
239 11
Hi Frederic,
Can you provide a minimal reproducible example including either real data
(dput), or simulated data that mimics your situation? This will allow more
people to help.
Stephen
On Mon, Mar 30, 2015 at 8:39 AM, Frederic Ntirenganya
wrote:
> Dear All,
>
> I want to plot multiple using g
Dear All,
I want to plot multiple using ggplot function from a data frame of
many columns. I want to plot only str1, str2 and str3 and I failed to
make it. What I want is to compare str1, str2 and str3 by plotting
vertical line. I also need to add points to the plot to be able to
separate them.
or each ID and you can use it for
>> discarding this ID from the list.
>>
>> Regards
>> Petr
>>
>>
>>> -Original Message-
>>> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
>>> project.org] On Behalf Of fd
>>
On Sat, 2 Aug 2014 05:22:26 AM Florian Denzinger wrote:
> Thank you everyone for your help so far.
>
> I am still working on the problem to get a merged new dataframe
which fills
> in new rows with NA values for each year that is missing for plotting
with
> gaps ( in the example the item BARTLEY
org [mailto:r-help-bounces@r-
>> project.org] On Behalf Of fd
>> Sent: Thursday, July 31, 2014 4:37 PM
>> To: r-help@r-project.org
>> Subject: [R] Multiple plots and postscripts using split function
>>
>> Hi,
>>
>> I'm relatively new to R and
the list.
Regards
Petr
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
> project.org] On Behalf Of fd
> Sent: Thursday, July 31, 2014 4:37 PM
> To: r-help@r-project.org
> Subject: [R] Multiple plots and postscripts using split functio
;>> dev.off()
>>> }
>>>
>>> -
>>> David L Carlson
>>> Department of Anthropology
>>> Texas A&M University
>>> College Station, TX 77840-4352
>>>
>>>
>>>
>&g
;>
>>
>>
>> -----Original Message-
>> From: r-help-boun...@r-project.org
>[mailto:r-help-boun...@r-project.org] On Behalf Of fd
>> Sent: Thursday, July 31, 2014 9:37 AM
>> To: r-help@r-project.org
>> Subject: [R] Multiple plots and postscripts
exas A&M University
> College Station, TX 77840-4352
>
>
>
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
> Behalf Of fd
> Sent: Thursday, July 31, 2014 9:37 AM
> To: r-help@r-project.org
> Subject:
lege Station, TX 77840-4352
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of fd
Sent: Thursday, July 31, 2014 9:37 AM
To: r-help@r-project.org
Subject: [R] Multiple plots and postscripts using split function
Hi,
I'm relatively
Hi,
I'm relatively new to R and I would like to do the following:
I have a .csv file with four columns (NAME, ID, YEAR, VALUE) and would like
to do several xy plots with the year on the x-axis and the data values
(measurements) on the y-axis and after that export the different plots to
postcript.
see: ?par
Does running
par(mfrow=c(4,3))
do the job?
On Wed, Apr 16, 2014 at 7:33 AM, eliza botto wrote:
> Dear useRs,
> I drew 12 separate raster maps. I want to combine them in such a way the they
> appear on the same sheet in R, which will later on be saved. Each row should
> contain t
Hi,
Did you have a look at the "rasterVis" package?
Regards,
Pascal
On Wed, Apr 16, 2014 at 9:33 PM, eliza botto wrote:
> Dear useRs,
> I drew 12 separate raster maps. I want to combine them in such a way the they
> appear on the same sheet in R, which will later on be saved. Each row should
Dear useRs,
I drew 12 separate raster maps. I want to combine them in such a way the they
appear on the same sheet in R, which will later on be saved. Each row should
contain three raster maps, so in total we should have 4 rows with each row
containing 3 rasters. I know that mfrow() can do it
Hi,
Check ?matplot()
matplot(c,cbind(a,b,d),type="l",ylab="Dependent Var")
#BTW, there is a typo in 'b'. (0,748).
A.K.
Hi,
I have some values that I need to represente in the same plot.
For exemple, if I have,
c<-c(200,205,210,215,220,225,230,235)
a<-c(0.032,0.44,0.86,0.65,0.53,0.213,0.4
slavia wrote
> Hi,
>
> I have some values that I need to represente in the same plot.
> For exemple, if I have,
>
> c<-c(200,205,210,215,220,225,230,235)
> a<-c(0.032,0.44,0.86,0.65,0.53,0.213,0.46,0.231)
> b<-c(0.325,0.657,0.784,0.236,0.798,0.287,0,748,0.785)
> d<-c(0.786,0.217,0.538,0.513,0.87
FluxComparisonDataSet
partial.pdf")
par(mfrow=c(1,1))
lapply(names(temp2New),function(i) lapply(temp2New[[i]],function(x)
{plot(x[,1],x[,2],main="Seasonal Flux
Sum",sub=paste(i,colnames(x)[2],sep=" "),xlab="Calendar Year
Timesteps",ylab="Total Flux (kg/sea
te.cases(x1)] })
# temp1<-lapply(temp1,function(x) x[is.data.frame(x)])
#3 columns subset
temp3<-temp1[lapply(temp1,length)==3]
temp3New<-temp3[sapply(temp3,is.data.frame)]
pdf("Irucka.pdf")
lapply(names(temp3New),function(i) {x<-temp3New[[i]];
matplot(x[,1],x[,-1],type="
;)
par(mfrow=c(1,1))
lapply(names(temp2New),function(i) lapply(temp2New[[i]],function(x)
{plot(x[,1],x[,2],main="Seasonal Flux
Sum",sub=paste(i,colnames(x)[2],sep="_"),xlab="Calendar Year
Timesteps",ylab="Total Flux (kg/season)");lines(x[,1],x[,2])}))
dev.off(
,i]); colnames(x1)<-
c("CYEAR_DECIMAL",i);x1}))
Error in temp3[, 1] : incorrect number of dimensions
> temp2<-temp1[lapply(temp1,ncol)==2]
> temp2New<-lapply(temp2,function(x) lapply(names(x)[-1],
function(i){x1<-cbind(temp2[,1],temp2[,i]); colnames(x1)<-
c("CYEAR_
ux
Sum",sub=paste(i,colnames(x)[2],sep="_"),xlab="Calendar Year
Timesteps",ylab="Total Flux (kg/season)");lines(x[,1],x[,2])}))
dev.off()
A.K.
________
From: Irucka Embry
To: smartpink...@yahoo.com
Cc: r-help@r-project.org
Se
;Fluxmaster versus
>EGRET/WRTDS \n Seasonal FLux
Sum",sub=paste(i,colnames(x)[2],sep="_"),xlab="Calendar Year
>Timesteps",ylab="Total Flux (kg/season)");lines(x[,1],x[,2])}))
>dev.off()
>A.K.
>
>
>
>
>
>
>__
dev.off()
A.K.
From: Irucka Embry
To: smartpink...@yahoo.com
Cc: r-help@r-project.org
Sent: Wednesday, March 6, 2013 11:49 PM
Subject: Re: [R] multiple plots and looping assistance requested (revised codes)
Hi Arun, thank you for your assistance.
I ha
yahoo.com
Sent: Wednesday, March 6, 2013 5:24 PM
Subject: Re: [R] multiple plots and looping assistance requested (revised codes)
Hi Arun, thanks for the note. Thank you especially for noting the use of the
";" and "{}." I have updated my own code and the possible reproducib
lines(temper[[i]][1]);
lines(temper[[i]][2])})
dev.off()
which may not be the one you wanted.
A.K.
From: Irucka Embry
To: smartpink...@yahoo.com
Sent: Wednesday, March 6, 2013 9:32 PM
Subject: Re: [R] multiple plots and looping assistance requested (revised code
, 21SC60WQ.SV-325, 21SC60WQ.SV-326, 21SC60WQ.SV-328,
21SC60WQ.SV-346, 21SC60WQ.SV-354, 21SCSANT.SC-001, 21SCSANT.SC-002)
<-Original Message->
>From: arun [smartpink...@yahoo.com]
>Sent: 3/4/2013 9:43:24 PM
>To: iruc...@mail2world.com
>Cc: r-help@r-project.org
>Subject: Re: [
project.org
Cc:
Sent: Monday, March 4, 2013 9:51 PM
Subject: [R] multiple plots and looping assistance requested
Hi all, I have a couple of questions.
1) Is there a more effective way to remove the following pattern
(patternrm) from the station_id_Timeseries (see below)
patternrm <- c(_
Hi all, I have a couple of questions.
1) Is there a more effective way to remove the following pattern
(patternrm) from the station_id_Timeseries (see below)
patternrm <- c(_2000_4_OND, _2001_1_JFM, _2001_2_AMJ, _2001_3_JAS,
_2001_4_OND, _2002_1_JFM, _2002_2_AMJ, _2002_3_JAS, _2002_4_OND,
_2003_1
I have a variable :
*sim.var[,1]
*
Object of class SpatialPixelsDataFrame
Object of class SpatialPixels
Grid topology:
cellcentre.offset cellsize cells.dim
Xloc 0.3 0.0597
Yloc 0.1 0.05 117
SpatialPoints:
Xloc Yloc
[1,] 0.30 1.70
Hi,
I'm working with gamm models of this sort:
gm<- gamm(Z~te(x,y),data=DATA,random=list(Group=~1))
gm1<-gamm(Z~te(x,y,by=Factor)+Factor,data=DATA,random=list(Group=~1))
with a dataset of about 7 rows and 110 levels for Group
if I use plot(gm1$gam), I obtain 3 different surface plots, one for
Of annek
> Sent: Thursday, December 15, 2011 11:36 PM
> To: r-help@r-project.org
> Subject: [R] Multiple plots in one subplot
>
> Hi,
> I making a figure with six sub-plots using par(mfcol=c(2,3)). In the
> last
> sub-plot I want to have two graphs instead of one. I have t
On 16/12/11 19:36, annek wrote:
Hi,
I making a figure with six sub-plots using par(mfcol=c(2,3)). In the last
sub-plot I want to have two graphs instead of one. I have tried using
par(fig=x,y,z,v) but this par seems to overwrite the first par. Is there a
simple solution?
If I understand you corre
Hi,
I making a figure with six sub-plots using par(mfcol=c(2,3)). In the last
sub-plot I want to have two graphs instead of one. I have tried using
par(fig=x,y,z,v) but this par seems to overwrite the first par. Is there a
simple solution?
Thanks!
Anna
--
View this message in context:
http://r
Layout did it! Thanks guys :)
--
View this message in context:
http://r.789695.n4.nabble.com/multiple-plots-in-single-frame-2-upper-1-lower-tp3679574p3683144.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailin
On Wed, 2011-07-20 at 23:38 +1200, Rolf Turner wrote:
> On 20/07/11 11:07, DrCJones wrote:
> > Hi,
> >
> > par(mfrow = c(2,2))
> >
> > will create a 2x2 window that I can use to plot 4 diferent figures in:
> > [plot1 plot2]
> > [plot3 plot4]
> >
> > But how can do 3 so that the bottom spans the wid
On 20/07/11 11:07, DrCJones wrote:
Hi,
par(mfrow = c(2,2))
will create a 2x2 window that I can use to plot 4 diferent figures in:
[plot1 plot2]
[plot3 plot4]
But how can do 3 so that the bottom spans the width of the upper two:
[plot1 plot1]
[p l o t 3]
Is this possible in R?
In R ***a
DrCJones wrote:
>
> But how can do 3 so that the bottom spans the width of the upper two:
>
> [plot1 plot1]
> [p l o t 3]
>
>
?layout
for standard graphics (plot..), but that's what you are referring to. For
trellis, you must use other methods.
Dieter
--
View this message in context
Hi,
Try looking at ?layout. Here is a simple example:
layout(matrix(c(1, 2, 3, 3), 2, byrow = TRUE))
plot(1:10); plot(11:20); plot(21:40)
Cheers,
Josh
On Tue, Jul 19, 2011 at 4:07 PM, DrCJones wrote:
> Hi,
>
> par(mfrow = c(2,2))
>
> will create a 2x2 window that I can use to plot 4 diferent
Hi,
par(mfrow = c(2,2))
will create a 2x2 window that I can use to plot 4 diferent figures in:
[plot1 plot2]
[plot3 plot4]
But how can do 3 so that the bottom spans the width of the upper two:
[plot1 plot1]
[p l o t 3]
Is this possible in R?
--
View this message in context:
http://r.7896
G'day Bill,
On 18/05/2011, at 10:36 AM, wrote:
> If you
>
> ?plot.stl
>
> you will see that that the second argument, set.pars, is a list of argument
> settings for par(), including a (variable) default setting for mfrow. I.e.
> plot.stl overrides your external setting (which will also ove
Behalf Of Ben Madin
Sent: Wednesday, 18 May 2011 11:55 AM
To: r-help@r-project.org
Subject: [R] Multiple plots on one device using stl
G'day,
I am looking at monthly reports, and have three series of monthly data from
2007 to 2009. I would like to show the season decomposition of thes
G'day,
I am looking at monthly reports, and have three series of monthly data from
2007 to 2009. I would like to show the season decomposition of these two series
side by side on the one device, however using plot doesn't seem to respect any
use of layout(matrix(1:3, ncol=3)) or par(mfcol=c(1,3
Here is how to do the legend:
x <- cbind(rbind(1,2,3), 4)
layout(x, width = c(5,1))
layout.show(4)
plot(1:10, type = 'l')
plot(1:10, type = 'l')
plot(1:10, type = 'l')
# reset margins for creating the legend
oldMar <- par(mar = c(0,0,0,0))
plot.new()
legend('center'
, legend = 1:10
, lwd
Yes that's what I had managed to generate too. I can produce my 3 plots. Each
plot has 10 colored lines say. I want to place the legend in the 4th spot
listing the name of the 10 colored lines, and their color.
--
View this message in context:
http://r.789695.n4.nabble.com/Multiple-plots-with-one
You can use 'layout' to create 4 plot areas: the 3 plot you currently
have, and one for the legend. Try this to see what happens:
> x <- cbind(rbind(1,2,3), 4)
> layout(x, width = c(5,1))
> layout.show(4)
On Sat, Mar 26, 2011 at 7:06 PM, mavkoup wrote:
> Hi,
>
> I've created 3 plots one under
On Mar 26, 2011, at 8:27 PM, mavkoup wrote:
Ok I think I can figure that out. Which leads me to a further
question. My 3
plots contain 10 time series, each with a different name and color.
Can I
create the legend such that it has a line of the correct color
follow by the
name of the serie
Ok I think I can figure that out. Which leads me to a further question. My 3
plots contain 10 time series, each with a different name and color. Can I
create the legend such that it has a line of the correct color follow by the
name of the series? I.e.
line(with color1) NAME 1
line(with color2) NA
On Mar 26, 2011, at 7:06 PM, mavkoup wrote:
Hi,
I've created 3 plots one under the other, and want to include a
legend on
the right that spans the height of all 3 plots.
?mtext
# with the `las` parameter for rotation
Or you can use:
text(x,y, "some text", srt=-90,xpd=NA )
--
Davi
Hi,
I've created 3 plots one under the other, and want to include a legend on
the right that spans the height of all 3 plots.
How can I do this?
Thanks!
--
View this message in context:
http://r.789695.n4.nabble.com/Multiple-plots-with-one-legend-tp3408537p3408537.html
Sent from the R help mai
Please don't cross-post.
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
On Fri, Mar 25, 2011 at 8:33 AM, William Mok wrote:
> Hi All,
>
> I am trying to plot 4 graphs on to 1 page using layout(...), or par(mfcol =
> c(...)); with the function QQplot from the package PerformanceAnalytics
Hi All,
I am trying to plot 4 graphs on to 1 page using layout(...), or par(mfcol =
c(...)); with the function QQplot from the package PerformanceAnalytics.
The problem is that, no matter what order I use, it only plots 3 graphs on to 1
page and the last QQplot is shunted to the next page.
Also,
g for (i in Factor) cycles through every occurrence of a level
and so you only get four plots of the last level rather than a plot for every
level.
cheers
iain
--- On Mon, 21/2/11, Darcy Webber wrote:
> From: Darcy Webber
> Subject: [R] multiple plots using a loop
> To: r-help@r-project.or
On Mon, Feb 21, 2011 at 4:25 AM, Darcy Webber wrote:
> Dear R users,
>
> I am trying to write myself a loop in order to produce a set of 20
> length frequency plots each pertaining to a factor level. I would like
> each of these plots to be available on the same figure, so I have used
> par(mfrow
> Verzonden: maandag 21 februari 2011 12:45
> Aan: Darcy Webber
> CC: r-help@r-project.org
> Onderwerp: Re: [R] multiple plots using a loop
>
> Hi:
>
> Here's one way with the plyr package and function d_ply();
> the hist() function itself is not very elegant, bu
Hi:
Here's one way with the plyr package and function d_ply(); the hist()
function itself is not very elegant, but it 'works' for this example.
Factor <- rep(factor(letters[1:4]), each = 10)
Size <- runif(40) * 100
library(plyr)
par(mfrow = c(2, 2))
d <- data.frame(Factor, Size)
# Function to pro
Dear R users,
I am trying to write myself a loop in order to produce a set of 20
length frequency plots each pertaining to a factor level. I would like
each of these plots to be available on the same figure, so I have used
par(mfrow = c(4, 5)). However, when I run my loop below, it produces
20 plo
Hi:
Try this:
pf <- function(p) {
plot(c(p:(p+10)),c(1:11))
plot(c(p:(p+10)),c(2:12))
plot(c(p:(p+10)),c(3:13))
}
par(mfrow = c(3, 3))
for(i in 1:3) pf(i)
par(mfrow = c(1, 1))
HTH,
Dennis
On Wed, Nov 17, 2010 at 8:56 AM, Soyeon Kim wrote:
> Dear All,
>
> I made a function which gives 3
Dear All,
I made a function which gives 3 plots in one window(I used
par(mfrow=c(1,3)) in the function).
Using that function 3 times, I want to produce 9 plots in one window.
I tried par(mfrow=c(3,1)) or par(mfrow=c(3,3)) but it didn't work.
For example,
pf <- function(p) {
par(mfrow=c(1,3))
On Thu, Jun 17, 2010 at 12:57 PM, Lars Karlsson
wrote:
> I want to make a 2x2 plot on a single page, using stripplot() and boxplot().
> I tried the following two alternatives with mfrow() and layout(), but none
> of them worked.
>
> library(lattice)
> par(mfrow=c(2,2))
> boxplot(X1 ~ Y, data=tst1,
Hi Lars
Stripplot is defunct in R 2.10 and following releases, so I wonder a
bit why you would still insist on using it. Your code will not be
compatible with newer R versions, so I suggest you use stripchart
instead (and maybe update your R as well).
Cheers
Joris
On Thu, Jun 17, 2010 at 9:27
I want to make a 2x2 plot on a single page, using stripplot() and boxplot().
I tried the following two alternatives with mfrow() and layout(), but none
of them worked.
library(lattice)
par(mfrow=c(2,2))
boxplot(X1 ~ Y, data=tst1, horizontal=T, las=1)
boxplot(X2 ~ Y, data=tst1, horizontal=T, las=1)
27;s the correct name. ls(all=TRUE)
will
> > confirm it) first.
> >
> > HTH ...
> >
> > Peter Alspach
> >
> >> -Original Message-
> >> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
> >> project.org] On Behalf Of sh
y, 16 June 2010 3:27 p.m.
To: Phil Spector
Cc: r-help@r-project.org
Subject: Re: [R] multiple plots without for loops
Thanks for the reply, Phil.
My computer gets hung up on the par(ask=TRUE) call. I just tried
readline("Hit to proceed.")
and, it works well going forward. However, I
roject.org
> Subject: Re: [R] multiple plots without for loops
>
> Thanks for the reply, Phil.
>
> My computer gets hung up on the par(ask=TRUE) call. I just tried
>
> readline("Hit to proceed.")
>
> and, it works well going forward. However, I cannot go backwards.
Thanks for the reply, Phil.
My computer gets hung up on the par(ask=TRUE) call. I just tried
readline("Hit to proceed.")
and, it works well going forward. However, I cannot go backwards. Any
thoughts?
thanks again-
sherri
Quoting Phil Spector :
Sherri -
Perhaps calling
par(ask=TRU
Sherri -
Perhaps calling
par(ask=TRUE)
before plotting would be useful. (You'll be prompted to
hit Return to see the next plot in the series.)
- Phil Spector
Statistical Computing Facility
Dear All-
I am trying to plot over one hundred figures. I do not want to save
them, just walk through them to take a look. If I run the code as it
is below, then the plots just rapidly run through. I tried adding a
new device, but I reached the device number limit. I have gone through
the
ha, I was focusing on the wrong thing!
Sorry, Gurmeet. Good job!
>
>From: Xin Ge
>To: "Shi, Tao"
>Cc: Gurmeet ; Jim Lemon ;
>r-help@r-project.org
>Sent: Fri, May 14, 2010 10:51:26 AM
>Subject: Re: [R] Multiple plots; single x(y) labels
>
>
>Th
xes, rather than just one
> single xlab or ylab.
>
> Jim's solution is much more fancier than mine :-)
>
> ...Tao
>
>
>
>
> - Original Message
> > From: Gurmeet
> > To: Jim Lemon
> > Cc: r-help@r-project.org
> > Sent: Fri, Ma
2010 10:00:03 AM
> Subject: Re: [R] Multiple plots; single x(y) labels
>
> Hi Xin,
Or, just try adding "oma" and "mtext"
> commands:
?par
?mtext
#
> Code
par(mfcol=c(2,2))
par(oma=c(2,2,0,0))
plot(x <- sort(rnorm(7)),
> type = "s", main =
Hi Xin,
Or, just try adding "oma" and "mtext" commands:
?par
?mtext
# Code
par(mfcol=c(2,2))
par(oma=c(2,2,0,0))
plot(x <- sort(rnorm(7)), type = "s", main = "", ylab="", xlab="")
plot(x <- sort(rnorm(27)), type = "s", main = "", ylab="", xlab="")
plot(x <- sort(rnorm(47)), type = "s", main = ""
On 05/14/2010 02:04 AM, Xin Ge wrote:
Hi All,
Can anyone please help me with getting a single x and y-axis label while
plotting muliple plots. Here is the code:
par(mfcol=c(2,2))
plot(x<- sort(rnorm(7)), type = "s", main = "", ylab="", xlab="")
plot(x<- sort(rnorm(27)), type = "s", main = "", y
Try this:
x1 <- rnorm(7)
x2 <- rnorm(27)
x3 <- rnorm(47)
x4 <- rnorm(67)
xyplot(value ~ i | id,
do.call(rbind, lapply(ls(patt = "x"),
function(x)data.frame(id = x, value = get(x), i
= seq_along(get(x), type='l')
On Thu, May 13, 2010 at 1:04 PM, Xin Ge wrote
e same xlim and ylim. Like David said, you're re-inventing the
wheels .
...Tao
- Original Message
> From: Xin Ge
> To: David Winsemius
> Cc: r-help@r-project.org
> Sent: Thu, May 13, 2010 10:24:56 AM
> Subject: Re: [R] Multiple plots; single x(y) labels
>
>
On May 13, 2010, at 1:24 PM, Xin Ge wrote:
> Hi David (and Others),
>
> I think I messed it up. Lets start afresh, I do not want to use
> lattice for this. I'm using multiple "plot" commands and then
> eventually would like to get a *combine* x-label and y-label for
> this plot.
>
> Like fo
Hello Xin,
If you need to recreate plots from different systems you need full control over
the graphics output. This is not always easy with traditional graphics, better
have a look at the plotting functions from lattice (based on grid graphics
system in R) or maybe ggplot2.
http://www.googl
Hi David (and Others),
I think I messed it up. Lets start afresh, I do not want to use lattice for
this. I'm using multiple "plot" commands and then eventually would like to
get a *combine* x-label and y-label for this plot.
Like for example, the following plot has a combine x-label ("Height") an
On May 13, 2010, at 12:59 PM, Xin Ge wrote:
Hi David,
Thanks for your reply. By single x and y-labels I meant something
like this:
http://zoonek.free.fr/blosxom//R/2006-08-10_lattice_xyplot_quakes.png
which lattice gives by default. The code you sent doesn't seem to
solve the problem, I
Hi David,
Thanks for your reply. By single x and y-labels I meant something like this:
http://zoonek.free.fr/blosxom//R/2006-08-10_lattice_xyplot_quakes.png
which lattice gives by default. The code you sent doesn't seem to solve the
problem, I'm sorry if I havent' explained it clearly before.
A
On May 13, 2010, at 12:35 PM, David Winsemius wrote:
?plot # ylim
and you need to have the data in a form (before plotting) where you
can determine the shared max and min for the y limits
On May 13, 2010, at 12:04 PM, Xin Ge wrote:
Hi All,
Can anyone please help me with getting a sing
?plot # ylim
and you need to have the data in a form (before plotting) where you
can determine the shared max and min for the y limits
On May 13, 2010, at 12:04 PM, Xin Ge wrote:
Hi All,
Can anyone please help me with getting a single x and y-axis label
while
plotting muliple plots. H
Hi All,
Can anyone please help me with getting a single x and y-axis label while
plotting muliple plots. Here is the code:
par(mfcol=c(2,2))
plot(x <- sort(rnorm(7)), type = "s", main = "", ylab="", xlab="")
plot(x <- sort(rnorm(27)), type = "s", main = "", ylab="", xlab="")
plot(x <- sort(rnorm(
hi thomas,
thanks a lot- of course that's it.
i knew why the middle plot is stretcht, but didn't figure out that settting
par(oma) is the key..
greetings,
kay
--
View this message in context:
http://n4.nabble.com/multiple-plots-problem-tp2017326p2017551.html
Sent from the R help mailing list
The stretching of plot two occurs because you are allotting more space for
plot two.
You set
Plot 1: mar=c(0,4,4,2)
Plot 2: mar=c(0,4,0,2)
Plot 3: mar=c(4,4,0,2)
In plot one your are dedicating 4 lines to the top margin, in plot three you
are dedicating 4 lines to the bottom margin. In plot two,
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
Hello,
I have used the zipf.fnc several times and would like to draw now the Zipf
curve of four different corpora on the same chart, present them one on top
of the other. How do I go about it?
Thanks a lot,
Noam
--
View this message in context:
http://n4.nabble.com/multiple-plots-on-the-same
Mike,
You are not using rms functions in your example; you are using Hmisc's
summary.formula function and its plot method. For method='reverse',
multiple plots may be produced by the plot method so par(mfrow=c( )) is
not well defined. There is also a problem with the dotchart2 function
(cal
Dear All,
I wonder if someone can point me in the right direction here. I'm working
with the rms library, R 2.9.2 under Windows XP.
I'm trying to arrange two plots side by side for a colleague. mfrow or
mfcol do not seem to work, however, so I am obviously missing something
important. I know t
I'd like to generate on a single device multiple plots, each of which
contains two plots. Essentially, I've got sub-plots which consist of two
tracks, the upper one displaying gene expression data, and the lower one
showing gene position along the chromosome. I'd like to display four of
these sub-
If you call
par(new=TRUE)
after each call to par(fig=c(xmin,xmax,ymin,ymax))
then a subsequent call to plot() will not erase
the page.
In S+ the par(new=TRUE) is not needed, but it does
no harm.
Bill Dunlap
TIBCO Software Inc - Spotfire Division
wdunlap tibco.com
1 - 100 of 132 matches
Mail list logo