search for: subplot

Displaying 20 results from an estimated 157 matches for "subplot".

2011 Oct 05
2
subplot strange behavoir
Hello, Below is some example code that should reproduce an error I'm encountering while trying to create a tiff plot with two subplots. If I run just the following bit of code through the R GUI the result is what I'd like to have appear in the saved tiff image: x<-seq(0:20) y<-c(1,1,2,2,3,4,5,4,3,6,7,1,1,2,2,3,4,5,4,3,6) plot(x,y,type="l",las=1,ylim=c(0,12)) subplot(edm.sub(x[seq(1:5)],y[seq(1:5)]),x=4,y=9,s...
2012 Nov 30
3
(no subject)
Hello R usuer, The code given below superimposes a pie diagram on another plot containing some points. However, I would like to center the pie diagram on the xy location on the plot, but not on the center. is there any way to re-center pic diagram. Any suggestion or better alternative are highly appreciated. Thank you in advance for your help. Regards, Bibke library(visualFields) library(car)
2008 Mar 20
4
little subplot in corner
I want to draw a little subplot ("overview") into my detailed plot. It should be placed in say the top right corner and have the size of some legend (like legend(x="topright", inset=0.03, ...) #main plot plot(rnorm(100)) #give little density in corner plot(seq(-2,2,length=300),dnorm(seq(-2,2,length=300)),type...
2016 Mar 15
2
[FORGED] Different results based on the order of arguments to par
Paul, I was trying to make a minimal self contained example, but I guess I went too far on the minimizing. The original problem came from code more like: library(TeachingDemos) hist(rexp(1000), main='') abline( v=1, col='red') sp.par <- subplot(hist(rnorm(100), main=''), x='topright') op <- par(sp.par[c('usr', 'plt')]) abline(v=0, col='red') par(op) and so plot.new, plot.window, etc. are called as part of the sub plot (specifically by hist(rnorm(100))) and I am trying to go back and add a refer...
2009 Jun 24
1
subplot()
Hi, I'm trying to get a color-gradient triangle out of a large plot. Wonder can subplot() generate a triangle? So far, I'm only getting rectangles. Great appreciation for any reply!! Kexin
2013 Feb 16
1
subplot (Hmisc) and radial.plot (plotrix) problem
...rdinal results ##################### X <-c(1,3,4,5,3,2,4,4,5,2,1,3,3,2,4) Y <-c(1,2,2,4,1,1,2,3,3,1,2,2,4,1,2) Z <-c(1,2,1,2,1,1,3,2,2,2,1,2,2,1,1) data <-as.data.frame(cbind(X,Y,Z)) data$xydiff <-data$X - data$Y data$yzdiff <-data$Y - data$Z # Create the background frame for the subplots ################# plot(1, type="n", xlim=c(0,21), ylim = c(1,5), main="Score Changes", xlab="Days" , ylab="Ashworth Scale") # Work through each level of the scale ######################### for(i in 1:5){...
2009 Aug 20
1
nested, repeated measure lme
Dear all, Suppose I have a nested, repeated measure lme model. Which of the following formulae is correct? (assuming data are sampled from several plots in an agricultural experiment) (1) y~explanatory.variables,random=~time|block/plot/subplot/individual (2) y~explanatory.variables,random=~time|unique.ID.of.every.individual I have read that (2) is the only approach that works. But how could I then still include the nesting information from (1)? Many thanks for your help! Best wishes Christoph (using R 2.9.0 and the nlme library on W...
2007 Jun 19
2
axis labels in multiple plots
...to control this with mgp does not help because it controls both axes simultaneously. For example, with default values (mgp = c(3, 1, 0)) y-axis labels are ok, but x-axis labels are not. Setting mgp = c(3, 0, 0) gives good x-axis labels but the y-axis labels are over the axis. Since I'm using subplot() from TechingDemos package I don't know how to pass the mgp argument for every axis (like : axis(2, mgp = c(3, 1, 0)). I'm using R version 2.5.0 with Windows XP ## sim.data <- array(runif(420), dim = c(4, 5, 7, 3), dimnames = list(paste("var", 1:4, sep = ""), p...
2011 Dec 16
3
Multiple plots in one subplot
...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.789695.n4.nabble.com/Multiple-plots-in-one-subplot-tp4203525p4203525.html Sent from the R help mailing list archive at Nabble.com.
2010 Nov 18
1
lme Random Effects and Covariates
1. I'm attempting to test for Random Effects. I've grouped the data on subject (grid) but want to use lme to build the model without subject as a RE then add it and do anova between the 2 models. This is the result I get and it appears it's adding Random Effects. tmp.dat4 <- groupedData(Trials ~ 1 | grid, data = tmp.dat4) mod2a <- lme(Trials ~ factor(group_id) + reversal,
2003 Oct 13
1
Rotate a plot, and subplot
Hi all, Is there a way to rotate a plot, e.g. a histogram, by a certain angle (90/180/270 degress)? I spent hours trying to figure out how this is done, but without success. Also, I'm looking for an equivalent to the S-Plus "subplot" command to insert a kind of "thumbnail" graphic into a bigger one. How is this best done in R? Thanks for your help Pascal
2010 Sep 08
1
pairs and panel.smooth for two groups
...USJudgeRatings$group <- factor(c(rep(1, 22), rep(0, 21))) # I can draw a pairs graph where members of each group are drawn in different colors: pairs(USJudgeRatings[,1:4], col = c(2,3)[USJudgeRatings$group], pch = c(21,3)[USJudgeRatings$group]) # I would also like to add a smooth line to each subplot like pairs(USJudgeRatings[,1:4], panel=panel.smooth) # but I want the smooth to be done for each of the group, i.e. I want two smooths per subplot. # this creates only one smooth pairs(USJudgeRatings[,1:4], col = c(2,3)[USJudgeRatings$group], pch = c(21,3)[USJudgeRatings$group], panel = panel.smo...
2016 Mar 14
2
Different results based on the order of arguments to par
I ran into this issue when trying to modify a subplot (subplot function in the TeachingDemos package), but here is a more minimal example of the issue (I don't know that it is serious enough to call a bug): This code works how I expect: dev.new() hist(rexp(100)) par(plt=c(0.5,0.9,0.5,0.77), usr=c(0,1,0,1)) box() # show new plt region points(c(...
2004 Aug 20
1
Is there an alternative to subplot() of splus
Dear R-gurus, Is there any function in R does the same thing as function subplot()in Splus? I am trying to post a pie chart onto the top right hand corner of existing bar chart. Also, Does anyone know if I can use paste() to paste the graph to another graph? Cheers, Carla Chen
2007 Jul 13
1
Subplot.
Hello All, I wanted to do many plots (in my case, wanted to get 6 histograms) on the same figure. Is there a method in R that analogous to 'subplot' in MATLAB? Any help will be very much appreciated. thanks, Suman [[alternative HTML version deleted]]
2007 May 13
1
adding custom details to ggplot subplots
? stato filtrato un testo allegato il cui set di caratteri non era indicato... Nome: non disponibile Url: https://stat.ethz.ch/pipermail/r-help/attachments/20070513/ab60c7ed/attachment.pl
2013 Jan 06
1
nested, unbalanced anova
Hello, For an experiment, I selected plots of land within a forest either with honeysuckle or without honeysuckle. Thus, my main factor is fixed, with 2 levels: "honeysuckle present"(n=11) and "honeysuckle absent"(n=8). Within each plot of land, I have a "trenched" subplot and an "untrenched" subplot. Within each subplot of every plot, I measured soil moisture. Now I need to do a nested Anova to compare the soil moisture values between treatments. I don't really want to discard some data to make the sample sizes balanced. Does anyone know how to do a...
2011 Nov 06
1
Request for Help: y-axis label overlapped by x-axis in subplots in big plot
...z-axis label the right side 5. Issue Now all subgraphs are plotted successfully, except that * the y-axis labels for subgraphs in the right column of the whole graph are overlapped by the z-axis labels of the subgraphs in the left column of the whole graph. (meaning that y axis labels for the 2D subplots in the right column of the whole graph are not shown) 6. what I tried 6.1 When plot each graph in its own plot, everything displayed correctly. 6.2 I switched the order of this subgraphs in the whole graph, so that 3D were in the right column of the whole graph, 2D the left column. But in this ca...
2016 Mar 15
0
[FORGED] Different results based on the order of arguments to par
...back by creating a new plot that is like a previous plot. par(plt=, usr=) is not designed to return you to a previous plot. If it sounds like I am reluctant to change the behaviour of par(plt=, usr=) to support your use case, that is probably because I am. You could add examples and warnings to subplot() documentation about this behaviour, but ideally users would not be encouraged to do this at all. I would prefer to see something along the lines of ... hist(rexp(1000), main='') abline( v=1, col='red') sp.par <- subplot(hist(rnorm(100), main=''), x='top...
2010 Jul 02
3
Combining several plots besides a dendrogram?
...at image, and discovered that it relies on external web services, and also having PERL installed on the computer. I believe this could be done "locally" using the "seqLogo" function/package (see http://www.bioconductor.org/packages/2.2/bioc/html/seqLogo.html), combined with the subplot function (from the "TeachingDemos" package). So my questions are: 1) Might there be other packages/functions that I are more fitting for the task of recreating this plot ? 2) Can someone give some pointers on how the subplot function could be used to create such an image ? (I am not sure...