Hi there,
Here is the codes that could demo the problem:
# work as expected
plot(1:5)
polygon(c(1.5, 6.5, 6.5, 1.5), c(1.5, 1.5, 6.5, 6.5), col = "gray")
# the polygon at right upper is not filled by gray with alpha = 0.5
plot(1:5)
polygon(c(1.5, 6.5, 6.5, 1.5), c(1.5, 1.5, 6.5, 6.5), col =
ad
5)
par(oldp)
David L Carlson
Department of Anthropology
Texas A&M University
College Station, TX 77843-4352
From: Steven Yen
Sent: Monday, October 22, 2018 11:53 AM
To: David L Carlson
Subject: Re: [R] Polygon
Thanks David. I do know what
dnorm(x,0,1), xlim=c(-5, 5), frame=F)
David L Carlson
Department of Anthropology
Texas A&M University
College Station, TX 77843-4352
From: Steven Yen
Sent: Sunday, October 21, 2018 9:54 PM
To: David L Carlson
Subject: Re: [R] Polygon
Thank you Dav
() to close the space between the
tickmarks and their values.
--
David L. Carlson
Department of Anthropology
Texas A&M University
-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Steven Yen
Sent: Sunday, October 21, 2018 1:47
David, Rui, and All:
Greetings.
1. I need a helping hand with the polygon statement below so that I can
have the area under the curve highlighted, between (z1,z2).
2. Is it possible to label the X-axis with in two scale, in the current
z-scale and another, say x = (z+5)*2?
Thank you.
z1<- -1
z2<
Hello,
If you change cord.x and cord.y to
cord.x <- c(-3, seq(-3, -1.96, 0.01), -1.96)
cord.y <- c(0, dnorm(seq(-3, -1.96, 0.01)), 0)
then you will not need the call to abline.
Hope this helps,
Rui Barradas
Às 02:50 de 03/10/2018, Steven Yen escreveu:
Thanks!!! It did wonders.
Steven
On
Thanks!!! It did wonders.
Steven
On 10/3/2018 9:39 AM, David Winsemius wrote:
>> On Oct 2, 2018, at 5:50 PM, Steven Yen wrote:
>>
>> Great. Thanks! It did wonders.
>> 1. Is there a way to suppress the obvious tick stops (-3,-2,-1,0,1,2,3)
>> and mark only the ticks -1.96 and 1.96.
>> 2. Better ye
> On Oct 2, 2018, at 5:50 PM, Steven Yen wrote:
>
> Great. Thanks! It did wonders.
> 1. Is there a way to suppress the obvious tick stops (-3,-2,-1,0,1,2,3)
> and mark only the ticks -1.96 and 1.96.
> 2. Better yet, to draw vertical lines at x = -1.96 and x = 1.96.
> Thanks.
Read ?plot.defaul
Great. Thanks! It did wonders.
1. Is there a way to suppress the obvious tick stops (-3,-2,-1,0,1,2,3)
and mark only the ticks -1.96 and 1.96.
2. Better yet, to draw vertical lines at x = -1.96 and x = 1.96.
Thanks.
Steven
On 10/3/2018 12:51 AM, Rui Barradas wrote:
> Hello,
>
> Continue with
>
>
Hello,
Continue with
polygon(-rev(cord.x), rev(cord.y), col = 'skyblue')
Hope this helps,
Rui Barradas
Às 17:25 de 02/10/2018, Steven Yen escreveu:
Can someone help me with polygon. The following codes are self-runnable
and mark a shaded area under the standard normal curve in the x-range
Can someone help me with polygon. The following codes are self-runnable
and mark a shaded area under the standard normal curve in the x-range
(-3,-1).
Is there a way to also mark the area in (1,3), at the same time.
That is, I want shaded areas in both tails. Thank you...
===
# Create data for t
This sounds like a question better suited for R-sig-geo.
-Don
--
Don MacQueen
Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062
On 12/6/16, 12:00 PM, "R-help on behalf of Vetter, Vanessa"
wrote:
>Hi everyone,
>I have a very large shapefile with
Hi everyone,
I have a very large shapefile with many polygons (17769 polygons, 104.4 Mb),
which I want to convert to a raster file. A grid cell can be covered by either
none, 1 or several polygons. I want to assign the percentage cover of polygons
to the respective grid cell, just like the funct
Thanks, adding asp = 1 did the trick!
-Original Message-
From: David L Carlson [mailto:dcarl...@tamu.edu]
Sent: Thursday, April 28, 2016 12:17 PM
To: Greg Snow <538...@gmail.com>; Simon, Heather
Cc: r-help@r-project.org
Subject: RE: [R] polygon angle option perpendicular to axi
reg Snow
Sent: Thursday, April 28, 2016 9:50 AM
To: Simon, Heather
Cc: r-help@r-project.org
Subject: Re: [R] 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
ensity=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-bou
provide[d] commented,
minimal, self-contained, reproducible code" it would help.
HTH
Peter Alspach
-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Simon, Heather
Sent: Thursday, 28 April 2016 8:17 a.m.
To: r-help@r-project.org
Subject: [R] p
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
quot; it would help.
HTH
Peter Alspach
-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Simon, Heather
Sent: Thursday, 28 April 2016 8:17 a.m.
To: r-help@r-project.org
Subject: [R] polygon angle option perpendicular to axis
I am trying to use the angle op
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 th
Hi bgnum,
You can try something like this:
testdates<-as.Date(paste(1:30,"Sep",2015),"%d %b %Y")
nemails<-sample(10:30,30,TRUE)
library(plotrix)
stackpoly(testdates,nemails,col="blue")
Jim
On Wed, Oct 7, 2015 at 12:20 AM, bgnumis bgnum wrote:
> Hi All,
>
> I want to shade the area below "f" v
Hi All,
I want to shade the area below "f" variable and it doesn´t draw:
plot(z$Dateh[nn:length(z$Dateh)],f,type="l",col="black", xlab="Time",
ylab="Line")
grid()
polygon(c(1, 1:st, st),c(0, f, 0), col = "blue")
st is the length of f.
But if I plot
plot(f,type="l",col="black", xlab="Time", yla
Please post the packages from which 'barabasi' and 'layout.fruch'
originate (not to mention whatever the plot() method is for whatever class
your 'g' is). Further, without seeing what your data look like we have no
way of knowing whether you've fed the appropriate elements of "L" to chull.
e
rg] On
> Behalf
> Of email
> Sent: Thursday, November 14, 2013 10:04 AM
> To: r-help@r-project.org
> Subject: [R] polygon circling a graph
>
> Hi:
>
> I want to create a polygon encircling a graph. For this i use convex
> hull to get the coordinate point
Hi:
I want to create a polygon encircling a graph. For this i use convex
hull to get the coordinate points for polygon.
g <- barabasi.game(10)
L<-layout.fruchterman.reingold(g)
temp1 <- chull(L)
temp1 <- c(temp1, temp1[1])
plot(g, layout=layout.fruchterman.reingold)
But when i plot the polygon
On Apr 1, 2013, at 10:56 , catalin roibu wrote:
> Hello all!
>
> I have a problem to draw a polygon with R. My data is like this>
> Year Nb.series Perc.pos Perc.neg Nature RGV_mean RGV_sd neg poz
> 1 1901 1 0.00 0.00 0 4.29 NA 0.00 0.00
> 2 1902 1 100.00 0.00 1 16.47 NA 0.00 100.00
> 3 1903 1
Hello all!
I have a problem to draw a polygon with R. My data is like this>
Year Nb.series Perc.pos Perc.neg Nature RGV_mean RGV_sd neg poz
1 1901 1 0.00 0.00 0 4.29 NA 0.00 0.00
2 1902 1 100.00 0.00 1 16.47 NA 0.00 100.00
3 1903 1 100.00 0.00 1 31.31 NA 0.00 100.00
4 1904 1 0.00 0.00 0 -9.62 N
On Thu, Aug 2, 2012 at 5:53 PM, Jose Narillos de Santos
wrote:
> Many thanks Eik it works properly.
>
> what I don´t know exactly is why you put
> c(xv,rev(xv)),c(efinal,rev(efinal2)),col="red" inside polygon. I see it
> works but for the moment I don´t really see the meaning of c() and why is
> n
Many thanks Eik it works properly.
what I don´t know exactly is why you put
c(xv,rev(xv)),c(efinal,rev(efinal2)),col="red" inside polygon. I see it
works but for the moment I don´t really see the meaning of c() and why is
needed to put twice and so on.
If I had a vector of dates associated with e
Hi Jose,
this should work (but I think you need a deeper understanding, what
plot(efinal) does, see ?plot):
plot(efinal,ylim=range(c(efinal,efinal2)),type="n",ylab="")
xv<-seq_along(efinal)
polygon(c(xv,rev(xv)),c(efinal,rev(efinal2)),col="red")
cheers
Am 02.08.2012 16:36, schrieb Jose Narillos
: jrkrid...@inbox.com
Subject: Re: [R] Polygon shaded area
Hi many thanks,
That is my data.
> dput(efinal)
c(0.9525, 0.89785, 0.8931, 0.9308, 0.89335, 0.8729, 0.8521, 0.8556,
0.88135, 0.9093, 0.89375, 0.91155, 0.8881, 0.86655, 0.8927, 0.8898,
0.8703, 0.84863, 0.81745, 0.8349, 0.8248, 0.85
Hi many thanks,
That is my data.
> dput(efinal)c(0.9525, 0.89785, 0.8931, 0.9308, 0.89335, 0.8729, 0.8521,
> 0.8556,
0.88135, 0.9093, 0.89375, 0.91155, 0.8881, 0.86655, 0.8927, 0.8898,
0.8703, 0.84863, 0.81745, 0.8349, 0.8248, 0.85995, 0.8686, 0.83765,
0.86075, 0.8609, 0.8528, 0.8837, 0.8917, 0
> The efinal are two temporal series I attach?
Not attached. R-help typically strips out any attachment to prevent malware
being spread.
The best way to supply sample date is to use the dput() command. See ?dput for
details but basically just say dput(myfile) and copy the results into your
Hi I attach my function. No error message (it seems a line appears but
nothing similar to examples(polygon))
2012/8/2 Eik Vettorazzi
> Hi Jose,
> how about this
>
> example(polygon)
>
> I think the second one is pretty much what you want.
>
> cheers.
>
> Am 02.08.2012 14:33, schrieb Jose Naril
Hi Jose,
how about this
example(polygon)
I think the second one is pretty much what you want.
cheers.
Am 02.08.2012 14:33, schrieb Jose Narillos de Santos:
> Hi all,
>
> I have two vectors (columns) called "efinal" and "efinal 2".
>
> I want to plot them on the same plot and "draw" a shaded a
On 02.08.2012 14:33, Jose Narillos de Santos wrote:
Hi all,
I have two vectors (columns) called "efinal" and "efinal 2".
I want to plot them on the same plot and "draw" a shaded area beween the
two lines using function polygon
I have tried all but I don ´t understand the polygon area, can yo
Hi all,
I have two vectors (columns) called "efinal" and "efinal 2".
I want to plot them on the same plot and "draw" a shaded area beween the
two lines using function polygon
I have tried all but I don ´t understand the polygon area, can you help me
with examples?
plot(efinal,type="l",ylim=rang
Komine wrote:
Hi everybody,
I have a matrix with 3 columns (Date, MeanArea and SdArea). I want to
draw a figure showing the variable MeanArea in terms of the Date. But
instead to use the variable SdArea as bar error, I want to use “polygon
error”. I use this code but the output does not seem goo
Please read the posting guide and provide a (small) reproducible example
of your data.
The statement "...output does not seem good." is not very useful.
Please explain what you would like the polygon area to look like, and
why you don't like the way it came out. Links to posted images of the
Hi everybody,
I have a matrix with 3 columns (Date, MeanArea and SdArea). I want to draw a
figure showing the variable MeanArea in terms of the Date. But instead to
use the variable SdArea as bar error, I want to use “polygon error”. I use
this code but the output does not seem good.
Polyhttp://r.
Center
Intermountain Healthcare
greg.s...@imail.org
801.408.8111
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
> project.org] On Behalf Of Muhammad Rahiz
> Sent: Thursday, June 16, 2011 3:35 PM
> To: x.r-help
> Subject: [R] Polyg
Well you need to recalculate the x values and need to interpolate for
the position where you lines cross the m lines
Uwe Ligges
On 16.06.2011 23:35, Muhammad Rahiz wrote:
Hi all,
I have the following script which fills the values which are less than
the mean of a given timeseries.
If
Hi all,
I have the following script which fills the values which are less than
the mean of a given timeseries.
If you look closely, the colored regions are "out of line".
Any suggestions how I can rectify this?
Thanks
Muhammad
# -
#rm(list=ls())
x <- abs(rnorm(100))
tt <- 1:100
m <- m
OK, I've added a 'horizontal' argument to panel.xyarea(), which is
consistent with the meaning in panel.xyplot(). It is available from
R-forge via SVN now, or as a built package within a day or 2 probably.
Questions like this are best sent to package maintainers directly, I think.
Regards
# Felix
Hi, I'd like to draw a polygon graph. I used the package lattice extra which
includes a function for that (see:
http://latticeextra.r-forge.r-project.org/#panel.xyarea&theme=default). But
i don't want the polygon ending with its filled border at the x-axis (like
in my code). Instead it should be r
Looking at the source code of the function diagwl() (which is used to
produce that one), the "shading" appears to be drawn using the function
segments(). Basically, the difference d between both lines is calculated,
and then the shading is done by using different lty and col when d is
positive or n
The last sentence should read:
Due to the 20 or so times the lines cross each other I wasn't sure how to
modify the last example in ?polygon
--
View this message in context:
http://r.789695.n4.nabble.com/Polygon-Shading-Based-on-Relative-Line-Position-tp2132718p2132720.html
Sent from the R help
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/graphiq
Jose Narillos de Santos wrote:
Hi all,
I have a matrix dd with dates and data. i WANT to create a grpah with shade
between the line and the zero axis. I´m trying to use polygon but something
doesn´ t work
Imagine.
I want to plot
g<-read.table("dd.txt", col.names=c("fecha","DP"))
g$fecha <-
Hi all,
I have a matrix dd with dates and data. i WANT to create a grpah with shade
between the line and the zero axis. I´m trying to use polygon but something
doesn´ t work
Imagine.
I want to plot
g<-read.table("dd.txt", col.names=c("fecha","DP"))
g$fecha <- as.Date(g$fecha, format="%d/%m/%Y"
2009/11/10 Uwe Ligges :
> This one is extraordinary dangerous: it also killed my kind of X server
> called Windows completely so that I had to reset the machine.
>
> Perhaps it should be debugged on the Linux side with less serious side
> effects
The best way to debug this might be via a nes
Ludo Pagie wrote:
Hi all,
when I make a polygon with 100,000 vertices my X-server is being
killed. This occurs in R-2.9.0 and a freshly installed R-2.10.0
I'm running Ubuntu with a locally compiled R:
uname -a
Linux onyx 2.6.24-24-generic #1 SMP Tue Aug 18 16:22:17 UTC 2009
x86_64 GNU/Linux
Hi all,
when I make a polygon with 100,000 vertices my X-server is being
killed. This occurs in R-2.9.0 and a freshly installed R-2.10.0
I'm running Ubuntu with a locally compiled R:
uname -a
Linux onyx 2.6.24-24-generic #1 SMP Tue Aug 18 16:22:17 UTC 2009
x86_64 GNU/Linux
xlower = -2e6:2e6
xupp
Cetinyürek Aysun wrote:
Dear all,
I would like to plot credible interval for a function estimate in R. I
would like to plot the credible intervals as shaded region using polygon
function. Does anyone ever used that? I tried several times but I could
not obtain the right figure.
xis=sort(xi,decre
Dear all,
I would like to plot credible interval for a function estimate in R. I
would like to plot the credible intervals as shaded region using polygon
function. Does anyone ever used that? I tried several times but I could
not obtain the right figure.
xis=sort(xi,decreasing=TRUE)
plot(xi,fm)
p
: Wednesday, August 05, 2009 12:08 PM
> An: r-help@r-project.org
> Betreff: [R] polygon centroids
>
> Hi Everyone,
>
> Concerning the maptools package and get.Pcent() to get polygon centroids,
> does somebody know how to define the number of returned decimal places?
>
-boun...@r-project.org] Im
Auftrag von Herbert Rantus
Gesendet: Wednesday, August 05, 2009 12:08 PM
An: r-help@r-project.org
Betreff: [R] polygon centroids
Hi Everyone,
Concerning the maptools package and get.Pcent() to get polygon centroids,
does somebody know how to define the number of returned
Hi Everyone,
Concerning the maptools package and get.Pcent() to get polygon centroids, does
somebody know how to define the number of returned decimal places?
Thanks a lot in advance.
Herbert
--
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 -
sicherer, schneller un
On Fri, Aug 8, 2008 at 7:40 AM, Andrewjohnclose <[EMAIL PROTECTED]> wrote:
>
> Dear all,
>
> I am trying to set a specific bandwidth for a bivariate kernel density
> estimation and then plot it in lattice: managed all that except that the
> plot appears to have an issue regards the setting of the p
Dear all,
I am trying to set a specific bandwidth for a bivariate kernel density
estimation and then plot it in lattice: managed all that except that the
plot appears to have an issue regards the setting of the polygon and as a
result I end up with horizontal lines disecting my plotting region. I
Murray Richardson utoronto.ca> writes:
>
> Hello,
>
> I am looking for advice on a task I am trying to complete.
>
> I have a 4 column dataframe defining the start and end coordinates of
> line edges (from a CGAL alpha shapes function to define concave hulls
> from point clusters). I would
Hello,
I am looking for advice on a task I am trying to complete.
I have a 4 column dataframe defining the start and end coordinates of
line edges (from a CGAL alpha shapes function to define concave hulls
from point clusters). I would like to create polygon shapefiles from
these line edges,
Dear all,
I have a set of shapefiles which contents are polygons.
I would like to know if is there a way of I obtain the links between the
polygons, something like a "polygon spanning tree". For point patterns I can
use de spatstat package, but I need to do it for polygons.
Below I send a sampl
On 18/12/2007, at 2:33 AM, Elke Moons wrote:
> Dear forum,
>
>
>
> I would like to use the kernel2d or spkernel2d in the Splancs-
> package, but
> it does not recognize my polygon data.
>
>
>
> "Error in kernel2d(as.points(ptsbin), polygonprov, h0 = 2, nx =
> 100, : " is
> the error message.
Dear forum,
I would like to use the kernel2d or spkernel2d in the Splancs-package, but
it does not recognize my polygon data.
"Error in kernel2d(as.points(ptsbin), polygonprov, h0 = 2, nx = 100, : " is
the error message.
Invalid poly argument
The data are defined as follows:
Hi,
I was wondering if there is any function in R that can be used to
check for overlapping polygons in multidimensional space? I've used
overlap.xypolygon for 2D, but what if I want to check, for example, in
5D?
Any help would be greatly appreciated!
Thanks,
newRuser
__
On Tue, 30 Oct 2007, Luke Spadavecchia wrote:
> 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
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
Haiyong Xu <[EMAIL PROTECTED]> writes:
> Is there any package which can calculate the overlapping area of two
> polygons or output the coordinates of the overlapping of two polygons?
The function overlap.xypolygon(A,B) in package 'spatstat' calculates the
area of overlap between two polygons A an
On 17/10/2007 2:23 AM, Haiyong Xu wrote:
> Hi there,
> Is there any package which can calculate the overlapping area of two
> polygons or output the coordinates of the overlapping of two polygons?
I believe gpclib can do both of those.
Duncan Murdoch
___
No.
On Oct 16, 2007, at 11:32 PM, Moshe Olshansky wrote:
> Are your polygons convex?
>
> --- Haiyong Xu <[EMAIL PROTECTED]> wrote:
>
>> Hi there,
>> Is there any package which can calculate the
>> overlapping area of two
>> polygons or output the coordinates of the
>> overlapping of two polygons?
Are your polygons convex?
--- Haiyong Xu <[EMAIL PROTECTED]> wrote:
> Hi there,
> Is there any package which can calculate the
> overlapping area of two
> polygons or output the coordinates of the
> overlapping of two polygons?
>
> Thanks.
> Haiyong
>
> ___
Hi there,
Is there any package which can calculate the overlapping area of two
polygons or output the coordinates of the overlapping of two polygons?
Thanks.
Haiyong
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLE
73 matches
Mail list logo