similar to: Polygon Graph in lattice/ lattice extra

Displaying 20 results from an estimated 500 matches similar to: "Polygon Graph in lattice/ lattice extra"

2011 Jan 20
2
adding text to y-axis per row of panels (lattice)
Dear all, Being a newbie to R, I've trawled through many old posts on this list looking for a solution to my problem, but unfortunately couldn't quite figure it out myself. I'd be very grateful if someone here on this list could perhaps help me out. I have a lattice plot with several panels and would like to add some text next to the y-axis on the right hand side of each row of
2012 Apr 10
1
Bug in HIGHESTMODSEQ when MODSEQ tracking is not enabled for version 2.0.18.
Greetings, I'm new to the list. I have encountered what I believe to be a bug in the return of HIGHESTMODSEQ when talking to a IMAP client. HIGHESTMODSEQ does not appear to be incrementing when a new message arrives. The exact steps I took are: 1) Create a new mail account 2) Send a mail to the account, check that you can receive the email. Send a second mail to the account. 3) perform a
2010 Dec 16
0
Convert tileplot's trellis to shapefile/ Add values to voronoi polygon
I would like to create a voronoi map that can show me point values like the ones in colum street_cle. I was able to do it in tileplot(latticeExtra) like the ones attached, and with the following commands: xy=list(x=x2$X, y=x2$Y) xy$street_cle <- x2$street_cle tileplot(street_cle~ x*y, xy) But this is a trellis. Is it possible to be converted to a shapefile or image so I can plot it using
2012 Dec 17
2
How to get transparent colors to sum to complete opacity?
Dear List, I want to use transparency in R to represent downweighting of observations based on clusters (repeated observations in a dataset). Some clusters will have identical covariate values in a parameter space -- in the 2D x,y case, these represent a bunch of semi-tranparent dots in the same place. I'd like these overlapping dots to be completely opaque. In other cases, the
2011 Aug 09
1
Transparent color ramp problem
Hello, I can't seem to add transparency to any color ramp I create using colorRampPalette(). Can someone tell me if it is possible to create transparent colour ramps? I am attempting to map shaded relief under elevation data. I know I can use the terrain.colors() with the alpha option, but I would prefer to create my own colour ramp using more vibrant colours. My most recent attempt at
2008 Nov 04
2
ggplot & annotating charts
Dear "R-listers" I've been trying to figure out how to annotate charts in ggplot (ie add text to line charts, highlighted boxes etc). By and large, I can get close to what i want with base graphics, but would ideally like to use ggplot whenever possible (additionally, i would like to add text labels automatically to the chart). The code is below I suspect I need to use geom_rect,
2009 May 20
4
Functions returning functions
Dear All: I have a question regarding the behavior of functions. Say I define a function that returns another function : A <- function(parameters) { # calculations w/ parameters returning 'y' tmpf <- function(x) { # function of 'y' } return(tmpf) } The value of the parameters are stored in an environment local to the function. Then I call x<- something
2006 Aug 01
1
R crashes using pdf() windows() or postscript()
Dear HelpeRs, I have a script where I save several thousands of graphics. These are then used in Latex through Sweave. Unfortunately R crashes while making these plots and Windows pops up some message that I run low on virtual memory. I tried to save the plots using pdf(), windows() and postscript() and also tried to run it with R CMD BATCH myscript.R. But after a while R slows down and crashes
2011 Feb 11
2
lattice auto.key gives mismatch colors
Hello All, I am using the following code to draw a figure. But the legend given buy auto.key has mismatched colors. Could any one help me? I am using R2.12.1 and most current lattice on windows XP. Thanks John library(lattice) src <- data.frame(t=rep(c('A','B','C','D'), rep(8,4)), s=rep(c(8132,8140,8178,8180,8224,8230,8337,8345), 4),
2009 Feb 05
1
Does the "labpt" object in the Polygons-class represent the centroid of the polygon
Hello, I need to calculate the centroids of some spatial polygons that I have placed into a Polygons-class object. Is the labeling point in the Polygons-class the centroid of the polygon? Thank you for your help.
2006 Aug 01
2
rgb and col2rgb color conversion/modification/shading
I want to get a lighter shade of a color...I have a lot of colored objects and want each one printed as a foreground against a slightly lighter background. I thought I could try something like changing the alpha channel by first converting it to rgb. But prior to trying that, I'm stuck with how to get the color after converting using col2rgb() to be interpreted again as a color, rather than
2007 Aug 13
0
Reading polygon shapefiles in splancs
Dear List, I'm trying to import a multiple polygon shapefile in splancs. I've found the following command but it seems to work only for single polygons: Name_of_splancs_polygon<-getPolygonCoordsSlot (getPolygonsPolygonsSlot(getSpPpolygonsSlot(name_of_sp_polygon) [[1]]) [[1]]) I've tried to change the numbers but it seams to choose polygons instead of importing them
2010 Feb 05
0
Plot point text labels over polygon w/o overlap?
Using pointLabel in the maptools package will plot text labels for points to avoid overlap of text. But is there a way to avoid/minimize overlap of text labels with the outline of an underlying polygon? For example, when plotting location of cities, one would like the text labels to not fall on top of nearby country/state borders, etc. Many thanks, Kevin Ummel Central European University
2005 Sep 01
1
convex-polygon in scatter plot
Hello, I am trying to draw a convex-polygon (envelope) connecting the outer points (of a particular class) in a scatter plot [which I want to do to illustrate the range of a particular type of samples in an ordination plot]. Is there any function to plot this kind of polygon? Kind regards Zlatko Petrin
2007 Dec 17
1
polygon class in splancs package
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: polgonprov<-list(x=polyprov$X, y=polyprov$Y) with X and Y coordinates in the Lambert1972
2011 Aug 03
0
Matplot & Polygon
I used matplot to plot multiple lines (over 300 lines). I'd like to draw a polygon and shade the area between upper and lower boundary. I know the plot function works pretty well with polygon(). How about matplot? I have too many lines and my upper/lower boundaries are formed by many different lines. Matplot seems to be more efficient in plotting our all the lines...or perhaps I'm wrong
2013 Apr 01
1
polygon error
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 NA 0.00 0.00 5 1905 1 0.00 100.00 -1 -22.55 NA -100.00 0.00 6 1906 1 0.00 100.00 -1 -12.09 NA
2010 Jan 09
0
importing home range polygon
Hi everyone, I am using adehabitat package for habitat selection analysis, I know R also do home range analysis, but I want to import home range polygon to R and run K-select analysis on this home range polygon. Do you know any material to help me? Thanks, Mustafa [[alternative HTML version deleted]]
2006 Apr 26
1
Polygon-like interactive selection of plotted points
[Please CC me for all replies, since I am not currently subscribed to the list.] Hi all, I have the following problem/question: Imagine you have a two- dimensional plot, and you want to select a number of points, around which you could draw a polygon. The points of the polygon are defined by clicking in the graphics window (locator()/identify()), all points inside the polygon are
2012 Jul 20
1
Dissolve polygon
Hi, I am working with a SpatialPolygonsDataFrame of many islands. There are a lot of polygons (islands) composing my SpatialPolygonsDataFrame. I want to extract the elevation of each island. I need to separate the different polygons (like dissolve function in arcgis), to have the elevation of each island. Do you have any idea how can I do that ? I already read a lot of forum, and read the