Displaying 20 results from an estimated 6000 matches similar to: "countour and poygon shading"
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")
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
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 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){
+
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 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 =
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
2006 Oct 26
1
Adding shading to background of Time series plot
Hello All,
Thank you in advance.
I have looked up and down in the archives to see if I could find some help
on moving the polygons to the background of a ts.plot. I've tried
panel.first in the gpars(...) arguments and trellis.focus, but I get
errors. Am I missing something easy here? Here is my script:
ts.plot(tsdjia, tstenyield, gpars = list(xlab = " ", ylab = " ",
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
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!
2009 Jul 04
2
Shading the area between lines
Hi,
I have a graph with seven parallel horizontal lines. Is it possible to
shade the area between two adjacent lines?
Thank you in advance,
Hannu
2011 Jun 02
2
shading in overlap between two ranges
I have 2 datafiles 'target' and 'observed' as shown below (I will gladly
email these 2 small files to whomever). X25. And X75. Indicate the
value of 25th and 75th-percentile of the target ('what should be') and
the observed ('what is'). The i.value is simply the month.
> target
X i.value X25. X75.
1 one.month 1 10.845225 17.87237
2
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
######################################################################################################
2007 Nov 02
2
Shading area under PDF of t -distribution
Dear R experts,
I have plot the PDF of t distribution with df = 74.
curve(dt(x,df=74),from=-4, to=4)
how can I shade the area under curve (for example, col="red") from t=+- 1.996?
Thank you.
Regards,
CH
--
CH Chan
Research Assistant - KWH
http://www.macgrass.com
2008 Jul 08
1
shading an area in a edf
Hi,
I've got the following edf:
***
x = c(1.6,1.8,2.4,2.7,2.9,3.3,3.4,3.4,4,5.2)
F2.5 <- ecdf(x)
plot(F2.5,
verticals= TRUE,
do.p = TRUE,
lwd=3,
ylab = "",
xlab = "",
xlim = c(1,5.5))
abline(h= (0:5)*0.2)
#mean
abline(v=mean(x), lwd=2)
mtext(text=expression(bar(x) == 3.07), side=1, adj=0.462, padj=3, cex=1)
***
Now I would like to
2011 Feb 04
3
shade between two curves
Is there a function that can shade the region between two arbitrary
curves? For example, how can I fill in the area between these two
plotted curves?
> x <- 1:10
> y <- x + rnorm(10)
> z <- x + 10 + rnorm(10)
> plot(x, y, type = "l", ylim = c(0,20))
> lines(x, z)
I would appreciate any help.
David
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
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 Jun 29
1
shading bar charts
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi alls,
i have to code a family of bar charts. After reading the doc, i cannot
understand if it is possible to shade the bar colors and how.
With shading i don't mean `density`. I mean something like that:
http://www.advsofteng.com/images/colorcylinder_g.png
Thanks and br
- --
Federico
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6
2007 Nov 29
1
Wireframe graph: black and white shading instead of color
All,
The code below produces a color 3D graph. I'd like to make it black and
white shading. I tried setting col.regions to FALSE but this just made it
completely white. I want the graph to look exactly as is, except black (or
grey) and white shading. Is this possible?
Cheers,
David
p.list = c(.01, .1, .25, .5, .75, .9)
cov.list = c(.2, .1, .05) ### leave out .01
X = rep(p.list, 3)