similar to: colores

Displaying 20 results from an estimated 1000 matches similar to: "colores"

2013 Sep 22
2
colores
Como usas la función image puedes consultar la ayuda ?image o help(image) y encontrarás el siguiente ejemplo donde se usa un diferente color Palette (mencionada por pepeceb en su respuesta). x <- 10*(1:nrow(volcano)) y <- 10*(1:ncol(volcano)) image(x, y, volcano, col = terrain.colors(100), axes = FALSE) # O puedes usar directamente el número para indicar el color image(x, y, volcano, col =
2013 Sep 22
0
colores
Por favor ver comentario con las las letras mayúsculas data("CPS1985", package = "AER") cps <- CPS1985 cps [1:10,] dim( cps) names( cps) library("quantreg") #regresion usual cps_lm <- lm(log(wage) ~ experience + I(experience^2) + + education, data = cps) #regresion por quantiles, tau son los cuantiles
2009 Sep 05
8
Color index in image function
Dear All, I was looking for the color index in?image function,?such as from topo.colors(n) and etc. but still never found it. For instance, from the help menu. ########################################### # Volcano data visualized as matrix. Need to transpose and flip # matrix horizontally. image(t(volcano)[ncol(volcano):1,]) # A prettier display of the volcano x <- 10*(1:nrow(volcano)) y
2009 Mar 03
1
behavior of squishplot in TeachingDemos
Hi list, I wonder if anyone has had this experience with squishplot() in the TeachingDemos package. Taking the example from the ?image help page, library(TeachingDemos) x <- 10*(1:nrow(volcano)) y <- 10*(1:ncol(volcano)) layout(matrix(c(1,2,3,4),ncol=2,byrow=TRUE),height=c(2,1)) ## 1st plot op <- squishplot(range(x),range(y),1) image(x, y, volcano, col = terrain.colors(100)) par(op)
2004 May 06
1
Problem with filled.contour/image
Quick question - I am having problems creating an orographic image (similar to volcano example). I have created a map matrix with 3 columns and over 2million rows. I have created the matrix as follows: map<-read.table("map.dat",header=TRUE) long.grid<-sort(unique(map$long) lat.grid<-sort(unique(map$lat) map.matrix<-matrix(map$height,nrow=length(lat.grid),byrow=TRUE) The
2000 Feb 03
1
questions about image()
Hi all, I have a few questions on color image in R (I'm using 0.90.1 on NT4). 1. How do I get a color key on the plot? 2. What I'd like to have is 0=white, 1=red, -1=blue (or any other color), and numbers in between represented by different shade (e.g., 0.1 would be light pink, -0.1 would be light blue, etc.). Is this possible? Thanks for any help any of you can provide. Regards,
2010 Jan 04
2
Adding a distance scale to a plot?
Do you know what steps I need to take to add a scale to a plot? I'm pulling my example out of "An Introduction to R: Software for StatisticalModelling & Computing" (see the R code around Figure 76). I would like to add a scale to the image produced by the following code.? I would like to the scale to list the distance?and units:? data(volcano) x <- 10*(1:nrow(volcano)) y
2009 Feb 28
2
filled.contour and time axis
Dear all, I am using filled.contour and my x-axis consists of a vector of dates, formatted using as.POSIXct. When I assign this vector to x in filled.contour, the x-axis in the plot is correctly formatted as dates. However, when I use plot.axes=axis(1) in filled.contour the x-axis is not correctly formatted. I need to opt for the latter because I want to add additional lines and points to the
2013 Aug 07
2
Agrupar los terminos de la leyenda
Hola Neo, esto es lo mejor que me ha salido. A ver si por lo menos te ayuda. Un saludo colores<-c("black", "green", "red", "steelblue", "purple") #creamos el vector de 5 colores que usaremos para unificar luego la leyenda y el grafico xyplot(V5 ~ dia | sol, groups=con, layout=c(1, 3), type= "l", pch=1,
2018 Nov 08
2
ggplot con muchos colores
Buenos días, estoy haciendo unos mapas con ggplot, con 29 categorías, por lo que tengo que utilizar library(RColorBrewer) para disponer de suficientes colores. El problema es que al hacerlo acorde a dos variables distintas (color=var1 y color=var2), cuyas 29 categorías son obviamente las mismas, les da distintos colores y no puedo comparar los mapas. Muchas gracias, Manuel
2007 May 22
5
Reducing the size of pdf graphics files produced with R
Hi, Without trying to print 1000000 points (see <http:// finzi.psych.upenn.edu/R/Rhelp02a/archive/42105.html>), I often print maps for which I do not want to loose too much of coastline detail, and/or plots with 1000-5000 points (yes, some are on top of each other, but using transparency (i.e. rgb colors with alpha information) this actually comes through as useful information.
2004 Jun 07
1
filled.contour - color palette so z=0 ONLY is blue
I am trying to create a topographic map of an island - the filled.contour function works fine except i am experiencing difficulty trying to represent the sea properly. Basically I want the default colour blue for any instance where z=0, if I simply use the default topo.color I get shades of blue for z values up to 220 metres. Is there a way in which I can specify terrain.color for all values of
2008 Feb 17
2
filled.contour with log axis
Dear all, I would like to generate a filled.contour plot with log x and y axis, however using: filled.contour(as.line,log="xy") results in a warning message. Does anybody knos what to do? Thanks Thomas
2011 Jul 31
3
export/import matrix
Hello I have a problem on keeping the format when I export a matrix file with the write.table() function. When I import the data volcano from rgl package it looks like this in R: > data[1:5,] [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [,14] [1,] 100 100 101 101 101 101 101 100 100 100 101 101 102 102 [2,] 101 101 102 102 102 102 102
2003 Sep 25
1
multiple plot layout and filled contour
Hello everybody, Could anybody give me a hint how I can use "layout" and "filled.contour" (or "image" plot with a color legend) together, please? What I want to do is something like the following example (Two or more plots with a legend for each at one page): data(volcano) layout(matrix(1:2, 1, 2, byrow = TRUE)) for (i in 1:2) { filled.contour(i*volcano, color =
2005 Jul 07
2
about image() function in R and colors
Hi! I've got a map in R imported from a GIS (GRASS) as a vector of factors. So I've got 20 different levels in the map and I've created a vector of custom colors of exactly 20 colors in lenght. I'm trying to use image() (really plot.grassmeta() that call image()) to plot the map with those colors but it doesnt work and the colors are changed. I would like that all points
2012 May 02
1
rgl.Sweave not producing transparency in pdf plots with alpha
Hi Folks, I'm trying to get rgl.Sweave to produce plots with transparency. However, it just seems to produce opaque plots when pdf is the output type. Perhaps this is a known issue? I'll just use .png in the meantime, but wanted to see about this, as I didn't see it in the documentation (though it's possible I missed it). Thanks, Allie \documentclass{article} \title {rgl
2009 Mar 27
1
interactive image graphic
Dear All I want to plot a kind of figures, which can interactive with user. For example, i have a matirx which can be showed by image function. i.e. we can compare the value depend on different colors. However, the change of colors depend on the range of value. Nowaday, i want to set a bar, which can be moved by user such that the user can obtain the appropriate range. Does anyone suggest me which
2009 May 05
2
Lattice: use levelplot as panel for wireframe
Hi, I want to draw a figure similar to http://dsarkar.fhcrc.org/lattice/book/images/Figure_13_07_stdBW.png from http://lmdvr.r-forge.r-project.org/figures/figures.html (figure 13.7) . However instead of using a contour plot as a panel for the wireframe I want to use a levelplot. Can somebody help me with this? Thanks in advance for any help, Kind regards, Anton Bossenbroek
2017 Oct 19
1
overlaying points and lines on a surface3d rgl plot with axes
Hi R users and experts, I am interested in learning more about the use of 3D plots. Specifically, I want to add points and lines to a surface plot. And get the axes and labels plotted also. Here is what I have tried with an example data set : library(rgl) vol2 <- 2*volcano # Exaggerate the relief library(reshape) mvol2 <- melt(vol2) str(mvol2) # First, persp and persp3d plots do not succeed