Displaying 20 results from an estimated 40000 matches similar to: "Matplot & Polygon"
2007 Oct 08
1
do not plot polygon boundaries with spplot {sp}
Hi,
Is there a simple way to suppress the plotting of polygon boundaries with
spplot() ?
# simple list of 12 colors
cols <- brewer.pal(12, "Paired")
# plot pile of polygons, with 12 classes:
spplot(x, zcol='class2', col.regions=cols, scales=list(draw=T), xlab="Easting
(m)", ylab="Northing (m)")
... seems to work well. However the polygon boundaries
2003 Oct 23
2
GIS re-mapping / polygon overlap
In Germany the Unemployment Agency uses a sectioning of the german map that
is different from the usual Administrative Boundaries.
Some demographic data are available in Administrative Boundaries only, some
in Unemployment Boundaries only.
I would like to generate estimates in one boundary system of data availabe
in the other boundary system, and would appreciate advice concerning the
following
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
2019 Mar 05
0
R cairo_pdf function does not respect plotting boundaries
Hi Paul,
Great, thank you for looking in to this, and I'm glad that you're able to reproduce it at your end too.
From your reply, I'm happy that it seems like the fix may be fairly trivial, but I understand the necessity for caution.
If there's anything else I can do to help, please do let me know.
Thank you again,
Best,
Lee
On Monday, 4 March 2019, Paul Murrell <paul at
2011 Dec 12
1
Polygon
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.
2019 Mar 05
1
[R] [FORGED] R cairo_pdf function does not respect plotting boundaries
Hi
(cc'ed to r-devel where further discussion should probably take place)
Thanks Lee. I see that problem.
There is a "+ 1" in the Cairo device code for setting the clipping region
(https://github.com/wch/r-source/blob/ba600867f2a94e46cf9eb75dc8b37f12b08a4561/src/library/grDevices/src/cairo/cairoFns.c#L156)
Remove the "+ 1" and the problem goes away (for your example
2019 Feb 28
2
R cairo_pdf function does not respect plotting boundaries
Hello all,
When producing a plot in R using the cairo_pdf device, the resultant plot does not respect the plotting boundaries. Lines and shaded regions will spill over the lower x-axis and the right-side y-axis (sides 1 and 4). I would like to know if it is possible to fix this behaviour when using 'cairo_pdf' in R?
As an example, see the image at this web link:
2019 Feb 28
2
R cairo_pdf function does not respect plotting boundaries
Hello all,
When producing a plot in R using the cairo_pdf device, the resultant plot does not respect the plotting boundaries. Lines and shaded regions will spill over the lower x-axis and the right-side y-axis (sides 1 and 4). I would like to know if it is possible to fix this behaviour when using 'cairo_pdf' in R?
As an example, see the image at this web link:
2011 Dec 13
1
Re : Polygon
HI,
Sorry Carl, I received your message in my spam folder. Sarah proposed me a good example of code.
Thank you
Momadou
________________________________
De : Carl Witthoft [via R] <ml-node+s789695n4188375h96@n4.nabble.com>
Envoyé le : Mardi 13 Décembre 2011 3h34
Objet : Re: Polygon
Please read the posting guide and provide a (small) reproducible example
of your data.
The statement
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
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,
2007 Apr 30
1
intersect filled.contour and polygon
Dear R users;
Is there any way to intersect a filled contour image and a polygon? My
problem is that I want to create a kriging map and the boundaries of
my map are given by the coordinates of the polygon.
So far I can superompose the polygon in the filled.contour image but I
don't know how to get rid of the contour image outside of the polygon
boundaries.
Any hint will be appreciated
PM
2009 Dec 02
1
polygon graph
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")
t<-g$fecha
st<-length(g$DP)
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
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
2016 Apr 27
1
Determine if a set of x and y-latitude points are inside of a polygon using R
Objective: Determine if a set of x and y-latitude points are inside of
a polygon using R.
Lets say I have 9 polygons. Where I have labeled the polygons to be
checked from 1-9. The problem I?m running into is running the
point.in.polygon to check if those points are in one of several
polygons, as my code overwrites the result.
To accomplish this I am using the R-built in function called
2020 Jan 28
0
matplot.Date & matplot.POSIXct
>>>>> Spencer Graves
>>>>> on Mon, 27 Jan 2020 23:02:28 -0600 writes:
> ????? Thanks for the reply.
> On 2020-01-27 19:56, Abby Spurdle wrote:
>> Maybe I'm missing something really obvious here, but I was unable to
>> create a matrix out of POSIXct object(s).
>> Perhaps that deserves a separate discussion...?
yes,
2004 Jun 14
2
ordering points as vertex of a polygon
Dear R-users,
Suppose I have the following x-y coordinates which give the boundaries of
a polygon:
> x <- c(5,4,5,9,6,6,4,7,10,7,10,4,10)
> y <- c(6,3,2,6,3,7,5,4,4,7, 5,4, 6)
I would like to plot the following graph:
> plot(x,y)
> ord <- c(7,12,2,3,5,8,9,11,13,4,10,6,1)
> polygon(x[ord],y[ord])
How I can obtain the above ordering (in the example an anti-clockwise
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
2010 Mar 06
1
color2D.matplot not giving colors
I am using color2D.matplot to plot a matrix about 400 by 200.
The values in the matrix are 0:5 and NA. The resulting plot is not color, but shaded b/w. I tried to figure out how to add colors, I would like something like c(blue, green, red, cyan, green)
#example
motifx <- matrix(NA, nrow=100,ncol=20)
motifx[,1:5] <- 1
motifx[,6:10] <- 2
motifx[,11:15] <- 3
motifx[,15:19] <- 4