search for: classinterv

Displaying 10 results from an estimated 10 matches for "classinterv".

2014 May 05
3
Mapa de quantiles con spplot
...library(rgdal) library(maptools) library(sp) library(classInt) library(RColorBrewer) zm <- readOGR(?.?, ?zmdis?) data <- read.csv(?part_pot.csv?, header=T, sep=?,?, dec=?.?) zm en data=data.frame(data) plotvar88 <- zm$part88 nclr <- 8 plotclr <- brewer.pal(nclr, ?Blues?) class <- classIntervals(plotvar88, nclr, style=?quantile?) colcode <- findColours(class, plotclr) plot(zm) plot(zm, col=colcode, add=T) legend(3777189,2249615, legend=names(attar(colcode, ?table?)), fill=attr(colcode, ?palette?), cex=0.6, bty=?n?) Entonces obtengo el mapa como lo quiero (Me falta la división políti...
2013 Jan 04
1
SpatialPolygon with the max value gets no color assigned in spplot function when using "at" parameter
Hi, I would like to do coloring of map regions based on the region values "weight". The approach I am taking is first to break regions into equal intervals, classIntervals(spdf$weight,4)$brks #4 intervals in this case and coloring all regions within the interval with the same color col = brewer.pal(4,"RdYlGn")) The max "weight" is as well the boundary of the interval The problem is that the last region is not included into the last interval...
2014 May 06
3
Mapa de quantiles con spplot
...: @oscarperpinan El día 6 de mayo de 2014, 9:21, "Olivier Nuñez" <onunez en unex.es> escribió: > El segundo argumento en spplot ha de definir el número/nombre del intervalo al que > pertenece el area a pintar. > Este código debería funcionar: > > zm$class88=findCols(classIntervals(zm$part88, nclr, style="quantile")) > zm$class93=findCols(classIntervals(zm$part93, nclr, style="quantile")) > > spplot(zm, c("class88","class93"), col.regions=plotclr, cuts=(nclr-1), > key.space="bottom") > > Un saludo. Olivier...
2013 May 11
1
(no subject)
...terused CC 1 Afghanistan 36 AFG 2 Albania 4 ALB 3 Algeria 52 DZA 4 Angola 0 AGO 5 Antigua 10 ATG 6 Argentina 4 ARG and when I attempt, > classInt <- classIntervals(ww[["waterused"]], n=5, style="fixed", fixedBreaks=c(0, 25,50,75,100,4565)) *Warning message:* *In classIntervals(ww[["waterused"]], n = 5, style = "fixed", fixedBreaks = c(0, :* * var has missing values, omitted in finding classes* I've tried a num...
2014 May 07
2
Mapa de quantiles con spplot
...izquierda del gráfico Saludos El 06/05/2014, a las 02:21, Olivier Nuñez <onunez en unex.es> escribió: > El segundo argumento en spplot ha de definir el número/nombre del intervalo al que > pertenece el area a pintar. > Este código debería funcionar: > > zm$class88=findCols(classIntervals(zm$part88, nclr, style="quantile")) > zm$class93=findCols(classIntervals(zm$part93, nclr, style="quantile")) > > spplot(zm, c("class88","class93"), col.regions=plotclr, cuts=(nclr-1), > key.space="bottom") > > Un saludo. Olivi...
2014 May 03
2
Mapa de quantiles con spplot
...o con spplot(zm, c(?part88?, ?part93?), cuts=4, col.regions=brewer.pal(4, ?Set3?)) Lo pude hacer utilizando el base graphics de R, definiendo: > plotvar88 <- zm$part88 > nclr <- 8 > plotclr <- brewer.pal(nclr, "PuOr") > plotclr <- plotclr[nclr:1] > class <- classIntervals(plotvar88, nclr, style="quantile") > colcode <- findColours(class, plotclr) > plot(zm) > plot(zm, col=colcode, add=T) > legend(3377189,2249615, legend=names(attr(colcode, "table")), fill=attr(colcode, "palette"), cex=0.6, bty="n?) Después intent...
2012 Jun 27
4
Intervalos de variable de proporciones, para representar en mapa
...Andalucía, indica que el 20% de extranjeros en esa Comunidad provienen de Rumania. La idea es hacer un mapa para cada una de las principales nacionalidades de procedencia. Mi duda surge en como particionar los datos, para eso estaba usando la librería classInt. library(classInt) breaks<- classIntervals(V1,n=3,style="jenks") breaks style: jenks one of 171 possible partitions of this variable into 3 classes [0.001187531,0.1215129] (0.1215129,0.2739454] (0.2739454,0.4427761] 9 8 3 Mi duda, más bien estadística,...
2010 May 14
2
help color coding map in R
...e of the map (with extra margins). xl <- extendrange(us.map$range[1:2]) yl <- extendrange(us.map$range[3:4]) library(maps) library(lattice) library(latticeExtra) library(RColorBrewer) # creates nice color schemes library(classInt) plotclr <- brewer.pal(nclr,"PuRd") class <- classIntervals(NatSTSummaryHigh.abi$STMean, nclr, style="fisher" ) colcode <- findColours(class, plotclr) # Plot a multi-panel map of all the states, and colour xyplot(y~x | NatSTSummaryHigh.abi$PrimaryDX, data = state.center,groups=names(attr(colcode, "table")), main="High Co...
2014 Jul 04
3
script de anomalias
Tengo una consulta, alguien tiene algun script en R para hacer graficos de anomalias estandarizadas (precipitacion, temperatura, etc) y que me permita pintar de rojo anomalias positivas y azules las negativas, ​Muchas gracias de antemano​ -- Luis Alfonso LOPEZ ALVAREZ MSc- Meteorologia - Ing. Sistemas PROFESIONAL ESPECIALIZADO (E) METEOROLOGO - IDEAM e-mail: llopez@ideam.gov.co
2012 Dec 12
3
create a color palette with custom ranges between colors
Hello everybody, I'm trying to create my own color palette on R, in order to interpolate some different temperature data on different maps (daily means, seasonal means,...). I would like to create a color palette which works for each map, so I need a color palette between -40 and +40?C. Sometimes my data for one map range from -10 to +20, sometimes from 10 to 30, etc... but always between