similar to: Shading underneath a line plot.

Displaying 20 results from an estimated 10000 matches similar to: "Shading underneath a line plot."

2008 Aug 28
4
Help with shading a polygon below a segment of a curve (normal distribution)
Dear R users, I still feel new to R so please apologize if I am doing something stupid here. My use of the polygon() function produces a result that I cannot comprehend: In a plot, I would like to shade the area below a normal distribution. However, I do not want the entire area to be shaded, but just the area on the right side of a vertical line that I draw through the distribution (in
2007 Apr 23
1
colored shading lines
Hi all, it there any possibility to draw colored shading lines of a polygon plot? E.g. plot(polygon_object,col="red",density=10,angle=45) produces only black shading lines within the polygon. With many thanks for any hint Albrecht
2007 Jan 29
2
countour and poygon shading
Hi, I have a contour plot and I want to shade a polygon (the area below a line) but the polygon shading wipes out the contour lines. Does anybody know how to shade the polygon and still see the contour lines? Thanks. Jeff
2007 Oct 30
1
Polygon shading line colors
Hi there, I'm having trouble working out how to change the colors of polygon shading lines. If I plot a polygon with polygon(poly,density=30,borders=gray(0.5)) I get gray borders but black shading lines; I have tried adding col=gray(0.5), bg=gray(0.5) and fg=gray(0.5), but no luck. How can I change the colors of the shading? The help file doesn't seem to detail this, so any
2010 Mar 24
1
shading an area of a graphic
Colleagues OS 10.5 R: 2.10.1 I have a simple x-y plot for which I would like to shade the lower (or upper) part of the interior region (i.e., the area bounded by the axes). If the delineation between top and bottom were linear, it would be use to use the polygon function. However, the delineation is a curve (which I can describe by an equation). In theory, I could divide the x-axis into a
2007 Oct 29
1
shading of curves with polygon
Hello again With the poylgon function it's possible to plot shaded areas under a curve. But somehow it connects the start and the endpoint of a line and fills whats between them. I would actually like to set the boarders of the shading by two min and max curves, but I failed. i tried stl like: polygon(min, max, border=0), where min and max are my curves plotet by plot(max) lines(min)
2018 Mar 27
1
Shading specific region in R
Dear useRs, Following the given codes below, I generated a plot that has 6 regions around a center point (IL), with 5 regions containing a point (L1, L2 to L5) and sixth vacant region. I want background of all the filled regions turned "green", while "red" for the vacant region. Can it be done through a quicker way? Thanks in advance ###Codes start from
2009 Dec 28
3
graph shading is overlaying axes
How can I resolve this problem?... As a general example, plot (1:4) polygon(c(0,0,5,5),c(0,5,5,0), border="lavenderblush1", col = "lavenderblush1") ###see how this overlays the axes lines #I have tried... for (k in 1:4) axis(k, lwd.ticks=0, label=F) #...but this misses the corners Any suggestions? -- View this message in context:
2007 Oct 03
2
Shading area under density curves
Hello, I have a question regarding shading regions under curves to display 95% confidence intervals. I generated bootstrap results for the slope and intercept of a simple linear regression model using the following code (borrowed from JJ Faraway 2005): > attach(allposs.nine.d) > x<-model.matrix(~log(d.dist,10))[,-1] > bcoef<-matrix(0,1000,2) > for(i in 1:1000){ +
2005 Apr 28
6
shading in line plots
Hello, I cannot figure out how to shade between two lines in a plot. For example, if I am trying to plot a confidence envelope and I would like to shade the interior of the envelope grey. Is this possible in R? Thanks in advance. Heather Lynch
2007 Jun 02
4
Datapoints underneath datapoints Problem
Hi there. I have the following graph: http://www.nabble.com/file/p10928148/map.jpg However, some datapoints occur at the same place as other datapoints and are so layered on top of each other. I would like to know if there is any possible way in which I could view those datapoints that are layered on top of each other ...maybe by rotating using latitude to show the datapoints underneath (but
2013 Feb 18
2
continuous shading in plots
Hi, Can someone help me with the following? I currently have the following plot: plot(c(0,14,0,14),c(0,5,0,5),ann = FALSE, xaxs="i", yaxs="i",bty="L" ) polygon(c(0,18,18), c(0,6,0), col='light grey', border = NA) polygon(c(0,18,18), c(0,2,0), col='grey', border = NA) However, I would like to make such a plot, but where there is a continuous shading
2009 Dec 15
1
shading between to curves that intersect repeatedly
Dear R-Community, I have the following problem and was wondering whether someone could help me out. I have a number of time series of discharge (up to 3000 data points in some cases) which I would like to compare on the same line plot by shading the area between some of them. Can anyone tell me how to do that? I have tried to fiddle around with the polygon function, but the curves interact a
2013 Oct 31
1
Moving averages shading / two colours / polygon
I am stuck at the following problem. I have two moving averages. One is faster than another. After plotting them I need to shade area between them in green when the faster is above slower and red where faster is below slower. Something like this: http://charts.stocktwits.com/production/original_9205513.png?1345576091 I tried with polygon but I can't do it. Any hints? Regards olo -- View
2009 Aug 13
3
shading between two smoothed curves
I have a set of 52 weekly values, one is the desired high lake stage for a week, and the other is the desired low lake stage for each week. It looks like this: week High Low 1 16 14.5 2 16 14.5 3 15.95 14.45 4 15.84 14.34 5 15.73 14.23 6 15.61 14.11 7 15.5 14 8 15.38 13.88 9 15.25 13.75 10 15.13 13.63 .... 52 15 13.5 I can plot out two nice curves
2010 May 06
1
Polygon Shading Based on Relative Line Position
Forum, I have two time series that I plot up using the data/code below. The x-axis shows weekly time step starting on 6/3/1999 (SP=10) and ending on 10/25/2007 (SP=448). I'm trying to shade between the two lines in a similar fashion as the graph found here: http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=122 Can the polygon function be used to do this? There are lots of
2007 Aug 05
1
Selectively shading areas under two density curves
Dear Listers, I am drawing a plot of two density curves, for male and female incomes. I would like to shade/hatch/color (whatever) the areas under the curves which are distinctive for each gender. This is the code I have tried so far: m <- density(topmal.d$y, bw = "sj") f <- density(topfem.d$y, bw = "sj") par(mfrow = c(1,1)) plot(x = c(0,400), y = c(0,0.02), type =
2004 Oct 14
3
Filling polygons with points
Dear list, are there any possibilities to fill a polygon with a point pattern or with a symbol pattern like '+' oder '-' instead of shading lines? Thanks in advance Dr. Michael Wolf Bezirksregierung M??nster Dezernat 61 Domplatz 1-3 48161 M??nster Tel.: ++ 49 (02 51) / 4 11 - 17 95 Fax.: ++ 49 (02 51) / 4 11 - 8 17 95 E-Mail: michael.wolf at bezreg-muenster.nrw.de
2012 Sep 13
2
Shading in prediction intervals
I have the following code for the minimum and maximum of my prediction interval > y.down=lines(x[x.order], set1.pred[,2][x.order], col=109) > y.up=lines(x[x.order], set1.pred[,3][x.order], col=109) domain=min(x):max(x) polygon(c(domain,rev(domain)),c(y.up,rev(y.down)),col=109) It doesnt seem to shade the right region, it gives me a trapezoid. Any help? Thanks!
2011 Dec 03
1
Shading the plot
Hi all, I have been trying to shade the specific part of the plot Part to be shaded 1. Any color whenever a2>a3 2. Any other color( Not same as 1) whenever a2<a3 Suggest me some code for this task PLOT CODE for reference ######################################################################################################