Displaying 20 results from an estimated 10000 matches similar to: "Shading in prediction intervals"
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
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
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 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 =
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
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 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){
+
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
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 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 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
######################################################################################################
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
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
2009 Jul 14
5
plotting confidence intervals
Hi R People:
If I have a fitted values from a model, how do I plot the
(1-alpha)100% confidence intervals along with the fitted values,
please?
Also, if the intervals are "shaded" gray, that would be nice too, please?
I check confint, but that doesn't seem to do what I want.
Thanks in advance,
Sincerely,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and
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 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 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
2018 Jan 12
1
shading (fill) the area between two lines
Dear All:
I am trying to shade the area between the two lines; *line 1* and *line 2*.
You can use this code as an example.
x100<-c(-1,1,2,3,4,5,6,3)
y100<-c(4,5,3,1,4,4,2,-1)
plot(x100,y100)
*##### line1*
abline(a=-(Beta0-1)/Beta[1,2], b=-Beta[1,1]/Beta[1,2], lwd = 3,
col="skyblue", lty=3) ##### lty=3,
*##### line 2*
abline(a=-(Beta0+1)/Beta[1,2],
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)
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