similar to: Polygon shading line colors

Displaying 20 results from an estimated 10000 matches similar to: "Polygon shading line colors"

2010 Oct 19
2
superpose.polygon, panel.polygon and their colors
Dear R-helpers, the problem I'm facing today is to convince lattice to paint some areas in gray. The areas I would like to have in gray, are confidence bands I've googled around in the mailing list archives and eventually find some clues. This link is my starting point http://tolstoy.newcastle.edu.au/R/e2/help/07/04/15595.html I'm reproducing here the code for your convenience est
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
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)
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
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
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
2008 Oct 24
2
Shading underneath a line plot.
Hi, I'm sure this should be fairly simple to do but I haven't found an example. I have 10 data points which are plotted as a line, I want to shade under this line with a colour. Other examples have shading under curves where there are two sets of data use polygons. mydata <- c(268,251,254,250,244,246,247,243,241,243) plot(mydata, type="o")
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
2010 Aug 31
1
Q about package Icens: change the color of the shading in plot function
Hello! I want to use the Icens package for analyzing interval-censored data. This code from the manual gives me what I want. library(Icens) data(cosmesis) csub1 <- subset(cosmesis, subset=Trt==0, select=c(L,R)) e1 <- VEM(csub1) plot(e1) However, I would like to change the color of the shading from green to something less green, say gray. Any ideas how I could do that? I looked at par, but
2016 Apr 27
4
polygon angle option perpendicular to axis
I am trying to use the angle option in polygon to create polygons filled with horizontal and vertical lines. The polygons I am crating are irregular and it the angle function appears to set the angle of the shading perpendicular to the polygon sides rather than perpendicular to the axes. Is there any way to set the angle relative to the axes rather than relative to the polygon sides?
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:
2016 Apr 28
0
polygon angle option perpendicular to axis
Tena koe Simon plot(1:10, 1:10, type='n') polygon(c(2,3,6,8), c(2,5,5,3), density=20, angle=90) polygon(c(2,3,6,8), 5+c(2,5,5,3), density=20, angle=0) I don't understand your problem. Perhaps if you "provide[d] commented, minimal, self-contained, reproducible code" it would help. HTH .... Peter Alspach -----Original Message----- From: R-help [mailto:r-help-bounces at
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
2016 Apr 28
0
polygon angle option perpendicular to axis
Filling polygons with lines is a throwback to the time when the height of quality graphics was the mechanical pen plotter (a device that used a pen in a mechanical arm to draw the plot on a piece of paper). Computing and printing technology has advanced quite a bit from that day, so you may want to reconsider why you want polygons filled with lines instead of just a solid color (and I consider
2003 Aug 01
1
shading in image()
Is there a way to make a shading interpolation on an image plot? Something similar to matlab 'shading interp', I think it is called Gouraud shading. What I want is to make a image plot look nicer. with image() it looks very facetted, and I would like to make it look smoother. I've tried with interp.surface() in fields package but it (obviously) makes nan values at the borders and
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){ +
2016 Apr 28
1
polygon angle option perpendicular to axis
Thanks for the question. Here is a sample of the code for my plot: Top = c(34, 39, 42, 45, 46, 41, 41, 40, 43, 38, 33, 33) Bottom = c(24, 29, 32, 36, 32, 34, 32,41, 40, 39, 29, 24) plot(1,1, col = "white", xlim = c(1.3,11.7), ylim = c(0,80), axis = FALSE, xaxt = "n") axis(1, at = c(1:12)) polygon(c(c(1:12),c(12:1)), c(top, bottom), col =
2016 Apr 28
1
polygon angle option perpendicular to axis
The angle is not based on the polygon edges, but it can seem that way if you do not use the asp=1 argument in your plot. Try this example, > plot(1:10, 1:10, type='n') > x <- c(1, 3, 5, 3) > y <- c(3, 5, 3, 1) > polygon(x, y, angle=0, density=10) > polygon(x, y + 4.5, angle=45, density=10) > polygon(x + 4.5, y + 4.5, angle=90, density=10) > polygon(x + 4.5, y,
2008 Feb 25
1
color area between two time-series via polygon()?
Hi all, I would like to color the area between two time-series. I tried it by using the polygon() function but I keeps drawing lines between beginning and end points. Is there another more appropriate function or how could I close the polygon at the end en the beginning of the time series (e.g., drawing a straight line)? The following doesn't plot a polygon between the two