similar to: line over multiplot

Displaying 20 results from an estimated 10000 matches similar to: "line over multiplot"

2009 Feb 22
3
line joining graphs
hi, I need to draw a line joining graphs,but abline stops within a graph.What do i do to cover portions between two graphs -- Rajesh.J [[alternative HTML version deleted]]
2010 Nov 30
2
Adding text to a multiplot (via mfrow)
Hi I have created a set of 4 barplots using mfrow=c(2,2) and need to add a heading that spans the margin of the bottom 2 graphs. I have used locator(1) to find the coordinates but I dont seem to be able to add text anywhere on this multiplot. I would be really grateful if anyone could tell me if there is a simple method of achieving this. Many thanks Sam Jones -- View this message in
2006 May 24
3
Regression line limited by the rage of values
Hi In R, using plot(x,y) followed by abline(lm(y~x)) produces a graph with a regression line spanning the whole plot . This means that the line extends beyond the swarm of data points to the defined of default plot region. With par(xpd=T) it will span the entire figure region. But how can I limit a regression line to the data range, i.e between (xmin,ymin) and (xmax,ymax)? Sorry for
2004 Oct 25
2
par("usr") trouble in multiplot axis scaling
Hello, I'm blotting a series of growth curves into a multiplot environment created with layout(). since I want the four plots to be easily visually comparable, I do the following: #first plot plot(x,y,<stuff>) standarduser<-par()$usr ... <some fitting> ... lines(spline(x, <fitted_equation>)) #everything all right till here # second plot plot(x,y,<stuff>)
1998 Mar 26
1
R-beta: multiplot using fig
I followed Bill Venables's suggestion and tried to make a multiplot figure with fig (using R .62). > x<-rnorm(100) > y<-rnorm(100) > x11() > par(fig=c(0,2/3,0,1)) > plot(x,y) > par(fig=c(2/3,1,0,1)) > qqnorm(x) > postscript(file="twoplot.ps") > par(fig=c(0,2/3,0,1)) > plot(x,y) > par(fig=c(2/3,1,0,1)) > qqnorm(x) However
2009 Apr 17
1
multiplot plot spacing and text strip
Hi everyone, I have a certain requirement and I'm not sure what to do.I need to reduce the spacing between plots in a multiplot. Make them really close together such that they almost touch. Also, I need to add a rectangular strip under my plot(very close to it) such that the strip contains some text describing it. Any help is appreciated -- Rajesh.J [[alternative HTML version deleted]]
2009 Jul 01
1
abline going out of bounds
Hi, I have a multiplot of 6 rows and 1 column.I need to draw vertical lines in each plot.However when I use abline(v=locator(1)$x) in some plots the line only comes for half the box and it goes beyond the box in others.I suspect this has something to do with the margins.any help? -- Rajesh.J [[alternative HTML version deleted]]
2006 Apr 10
2
Legend in the outer margin
Dear Rs I have a 3x3 multiple plot. I would like to have a overall legend in the outer right margin. From the help archive, I found that it can be done by setting par(xpd=NA). However, I couldn't find the correct values for x and y co-ordinates for the legend. Please find the code snippet below: par(mfrow=c(3,3), mar=c(4,4,0.9,0.5), oma=c(1,2,2,4),cex.main=1.1)
2004 Dec 14
2
drawing a rectangle through multiple plots
How do I draw a rectangle across multiple plots on a device? E.g., def.par <- par(no.readonly = TRUE) par(mfrow = c(3, 1)) plot(1:10, rnorm(10), ylim = c(-4,4), type = "l") plot(1:10, rnorm(10), ylim = c(-4,4), type = "l") plot(1:10, rnorm(10), ylim = c(-4,4), type = "l") rect(2, -4, 3, 4) par(def.par) I want the rectangle to extend across the whole device. How
1998 Mar 16
1
R-beta: multiplot figure problems
I wanted to have a figure consisting of 2 square plots, one above the other (2 rows, 1 column). I am using 61.1 on Linux. I did: > x1<-rnorm(100) > y1<-rnorm(100) > par(mfcol=c(2,1)) > plot(x1,y1,pty="s",mfg=c(1,1,2,1)) > plot(x1,y1,pty="s",mfg=c(2,1,2,1)) The resulting figure consists of two plots, one above each other, BUT they are extremely squished in
2007 Apr 18
5
Problem with ?curve
Dear all R gurus, I have following syntax: y = c(1:10) chippy <- function(x) { y[5] = x sin(cos(t(y)%*%y)*exp(-t(y)%*%y/2)) } curve(chippy, 1, 20, n=200) But I am getting error while executing : Error in xy.coords(x, y, xlabel, ylabel, log) : 'x' and 'y' lengths differ In addition: Warning message: number of items to
2001 Sep 19
1
Bizarre clipping with abline and points (PR#1095)
I want to put some points along the horizontal axis. > plot(1:10, 1:10) > points(4, par("usr")[3], xpd=TRUE) > abline(v=5) works fine for me. But if I try > plot(1:10, 1:10) > abline(v=5) > points(4, par("usr")[3], xpd=TRUE) then the points are clipped. The call to abline seems to be enforcing xpd=FALSE for later calls to the plot. Cheers, Jonathan.
2006 Oct 09
2
lines at margin?
Hi list, I want to add some lines at margin area of one figure. mtext could add text to these margins, can I add lines with different lty parameters? Thanks, mike [[alternative HTML version deleted]]
2002 Apr 18
1
grid lines outside plot region in version R1.4.1
Hello everybody, if I'm using par(xpd=NA) gridlines will plotted outside the plotting region. This is "new" (and, in my opinion, unaesthetic) in version 1.4 - compared to version 1.3. Is this a bug or a feature? Example: ------------------ par(xpd=NA) plot(1:11) grid() ------------------ platform sparc-sun-solaris2.6 arch sparc os solaris2.6
2011 Dec 07
1
Help! I couldn't put multiple qplot on the same page...
Hi all, I am stuck at ploting multiple graphs on one page. I don't why it doesn't work. All the 6 plots are either exactly the same, or they simply don't plot at all. I made sure that in each iteration the "datasub" and "factorsub" are different ... Could you please help me? Thanks a lot! I did my homework and followed the following advice:
2006 Jul 08
2
Adding Lines to Plot
This seems like a question that I should be able to answer on my own but after looking at the documentation I cannot seem to find the correct method. How do I add lines to a bar plot that extend from the vertical axis? For example, my vertical axis is numbered in increments of 10 and I would like these to go across the whole graph. Also, is there a way to have R label the value of each bar so
2005 Jun 15
3
how to plot density distribution with a arrow pointer?
Hi all, for example: > X<- rnorm(1000) > X0 <- 0.899 I want to draw a density distribution plot with a arrow pointer indicating the position of X0, meanwhile, giving out the p-value. any functions? Thanks very much.
2009 Nov 30
1
Plotting color.legend() outside of plot region
Dear List, I am trying to plot a color.legend() in the right outer margin of my device region. I have read multiple threads on the subject and still can't get it right. I have stolen an example from one of the threads to demonstrate my problem. I have extended the outer margin using par(oma()), and have used par(xpd=NA) to tell it to plot in the device region. I can get the legend to plot
2012 Sep 14
1
swap hist() colours
Hi, i created a set of graphs and want to find out how to swap the bar colours (from white to black) and set it to be default for all graph that i will produce (f.e. for different number of columns). some sugggestions? thanks in advance. here is an example: ############################## a <-read.table("http://www.scandinavia.sk/data/R/kotlina1.csv", sep=";", header=T)
2011 Apr 29
2
abline outside of plot region
Hi R people. I ran into this problem: I created a plot with errbars, like this: > errbar(x=c(1,2,3,4), y=c(2,1,3,3), yminus=c(1.5,0.5,2.5,2.5), yplus=c(2.5,1.5,3.5,3.5)) Next, I wanted to accentuate some x value with an abline, like this: > abline(v=2) In one of my R sessions (which admittedly I have had open for quite a while now), the abline draws outside of the plotting region