Displaying 20 results from an estimated 135 matches for "colorkey".
2009 Apr 03
2
Titles on lattice colorkey
Dear R-ers,
I'm not sure if this is a missing feature, a support request, or stupidity on my part, but nevertheless, its a question. Is it possible to add titles to colorkey legends? As far as I can tell, there is a command to do it for normal "key" legends, but not for "colorkeys".
eg it works for a normal key, created through auto.key
xyplot(decrease ~ treatment, OrchardSprays, groups = rowpos,
type = "a",
auto.key = lis...
2012 Jun 16
2
Adding title to colorkey
A recent paper on visualisation (in Neuron, a leading neuroscience
journal) surveyed how well previous articles in this journal labelled their
graphs (e.g. axis labelling and describing their error bars). Of
particular interest is that (only) 40% of plots labelled what their
colorkey was showing (variable and units).
The paper is at http://dx.doi.org/10.1016/j.neuron.2012.05.001
R is not yet that prominent (compared to matlab) in Neuroscience, so I
doubt many of the graphs were generated by levelplot() and friends.
However, how can the colorkey be labelled? I notice that thi...
2012 Jun 16
2
aligning axis labels in a colorkey from levelplot
R does a great job with the fine details regarding plots. e.g in the
following:
library(lattice)
y <- -4:4/10
xyplot(y~1, las=1)
the y axis is labelled with numbers -0.4, -0.2, 0.0, 0.2, 0.4 with the
numbers aligned on the decimal point.
How do I get the same behaviour in the colorkey of a levelplot? e.g.
levelplot(matrix(y,3,3))
the numbers in the colorkey seem left-aligned, and because of the minus
sign, the numbers now do not align on the decimal point. Likewise when
the number of digits changes:
levelplot(matrix(4:12,3,3))
Thanks, Stephen
2004 Feb 11
1
levelplot colorkey
Dear R'ers,
I've scanned available documentation and the web, but I can't seem to
figure out where I've gone wrong in adding numbers to scale the colorkey in
levelplot (Lattice package). For example,
levelplot(z, contour=T, labels=T, cuts=10, region=T,...
colorkey=list(T, space="bottom",
at=seq(0,2000,length=20),
labels=list(as.character(seq(0,2000,length=20))))
)
I...
2010 Sep 29
1
move colorkey
When using a wireframe, I need to move the colorkey from the "right"
position (default0 towards the plot. I have also needed to adjust the
height and used the code
colorkey=list(T,space='right',height=.5)
I have looked at documents (within levelplot) but cannot find a way to
move the colorkey other than right, left, bottom and t...
2004 Apr 27
1
helps on levelplot
I'm a new user of levelplot, and are not familiar with the terminology
very well. Is the bar alongside the levelplot indicating color or shade
call "colorkey"? I have to adjust the size of its label, but couldn't
make it so far. This is how I did:
levelplot(z~x*y, grid, at=seq(0,1,by=0.1),
colorkey=list(labels=list(cex=2)))
But I got error message "Error in draw.colorkey(x$colorkey) : Object
"at" not found". I tried to...
2008 Jun 13
1
Level Plot and Scale of Colorkey
I am drawing level plots but I would like to specify the range of the colorkey, I am not having any success figuring this out so any help would be greatly appreciated!
Here is an example of what I am trying to do:
disp<-1
x <- seq(1, 10,by=1)
y <- seq(1,10,by=1)
g <- expand.grid(x = x, y = y)
g$z <- 1/exp((abs(g$x-5)+abs(g$y-5))*disp)
g$z<-g$z/sum(g$z)...
2010 Mar 25
4
3 levelplots and 1 colorbar
...first two. However, if I try the "Two levelplots" code below
it works well. Can anybody tell me how could I draw three levelplots (of the
same size) with one colorbar.
Thanks in advance, Joaquin
### Three levelplots ###
frame <- matrix(rnorm(16*48), nrow=16)
p <-levelplot(frame, colorkey=FALSE)
print(p, position=c(0,0,1/3,1), more=TRUE)
p <-levelplot(frame, colorkey=FALSE)
print(p, position=c(1/3,0,2/3,1), more=TRUE)
p <-levelplot(frame, colorkey=TRUE)
print(p, position=c(2/3,0,3/3,1), more=FALSE)
### Two levelplots ###
frame <- matrix(rnorm(16*48), nrow=16)
p <-leve...
2006 May 10
4
lattice package plots
I am using the lattice packge for its levelplot and contourplot. Is it
possible to adjust the line thickness of the 'box' and tickmarks in these
plots?
Thanks for the attention,
Matt Sundling
2006 May 29
3
mtext in trellis-loop & colorkey
...e loop. Unfortunately, this did not work. Any suggestions?
As you can see from the provided example, there is another problem
with such animations: You do not see any difference in the plots
(because only the "height" changes). Is there any possibility to keep
a fixed scale for the colorkey (fixed labels and also fixed colors)
and to see the different heights of the function from the colors
(e.g. the first plot should be mainly gray (as it is the "lowest"),
the last one mainly white (as it is the "highest")).
Thanks very much!
marius
Here is a complete min...
2012 Jan 06
1
Can levelplot colorkeys display a logarithmic scale evenly?
...2M","5M") really visible on the rest of the key. I want each
gap (no matter its numerical range) to occupy one evenly-spaced "block" on the
color key, so they're all readable by the user. I want it to display value on a
logarithmic scale (0,1,10,100,1000,...). The colorkey only seems to support
linear scales (0,2,4,6,8,10,...), at least by default, and I don't see any
options in the help to change that default.
Does levelplot support this? Or am I destined to draw the colorkey manually
(very painfully using polygon calls and user coordinates)? Or are there...
2011 Apr 06
2
Layout within levelplot from the lattice package
...l size presented in 3 columns and 2 rows.
I've tried to approach it two ways. The first way leads to this question:
Is there any way to concatenate levelplots from a factor vertically as opposed
to horizontally? I'd like to pair the levelplots by factor.2 on top of each
other with the colorkey at thebottom, resulting in 3 columns of paired
levelplots. I can only get 3 rows of paired levelplots. Here is some mock code
to illustrate the point:
start = expand.grid(1:10,1:14)
start2 = rbind(start,start,start,start,start,start)
z = rnorm(840)
factor.1 = c(rep("A", 280), rep("...
2006 Mar 04
0
"Continuously colored" colorkey
Hi,
I use the levelplot function of the lattice library with the option
col.regions=gray(200:400/400) in order to get a "color-grid" of 201
different gray colors (actually if you look at the vector, some
consecutive colors are the same). In order to make the colors in the
colorkey as "smooth/continuous" as possible I use the maximal number
which is possible for the "cuts"-options, i.e. I use cuts=200 (the
standard for col.regions is 100 colors between green and red, so the
maximal number for cuts is 99. A higher number for "cuts" starts th...
2012 May 29
1
lattice: add a marginal histogram on top of the colorkey of a levelplot?
...r(x^2, y^2, "+")))
grid <- expand.grid(x=x, y=y)
grid$z <- cos(r^2) * exp(-r/(pi^3))
my.levs <- seq(-1,1,by=0.1)
my.cols <- grey(0:length(my.levs)/length(my.levs))
levelplot(z~x*y, grid, at=my.levs, scales=list(log="e"), xlab="",
ylab="",colorkey = list(space = 'top'),col.regions = my.cols)
# is there a way to add a marginal histogram above the colorkey?
histogram(~z, grid, breaks=my.levs,col=my.cols,xlab='',ylab='',
scales = list(draw = FALSE),
par.settings = list(axis.line = list(col = "transparent&quo...
2006 Sep 07
1
legend problems in lattice
Hi!
Im sorry to bother you but I cant fix this.
I use the lattice function levelplot and I want the colorkey at the
bottom, how do I get it there? I have tried changing colorkey.space and
changing in legend but I cant get it right, plz help
btw I'd like to speceify strings to appear at the tick marks and also
there I fail any thoughts?
cheers
Ernst
2014 Jun 10
2
Como controlar la altura de "colorkey" en levelplot de RatserVis
Hola miembros de la lista,
Estoy utilizando la función levelplot del paquete rasterVis para graficar
un raster y quiero controlar la altura de la referencia de color (colorkey)
del mapa, pero cuando cambio valores en el argumento "height" no parece
provocar cambios. Alguna idea de por qué no está funcionando?
> cobertura
class : RasterLayer
dimensions : 780, 1296, 1010880 (nrow, ncol, ncell)
resolution : 30, 30 (x, y)
extent : 530156.6, 5690...
2013 Sep 08
1
[PATCH] drm/nv10/plane: add plane support for nv10-nv40
...t;nouveau_drm.h"
+
+#include "nouveau_bo.h"
+#include "nouveau_connector.h"
+#include "nouveau_display.h"
+#include "nvreg.h"
+
+
+struct nouveau_plane {
+ struct drm_plane base;
+ bool flip;
+ struct nouveau_bo *cur;
+
+ struct {
+ struct drm_property *colorkey;
+ struct drm_property *contrast;
+ struct drm_property *brightness;
+ struct drm_property *hue;
+ struct drm_property *saturation;
+ struct drm_property *iturbt_709;
+ } props;
+
+ int colorkey;
+ int contrast;
+ int brightness;
+ int hue;
+ int saturation;
+ int iturbt_709;
+};
+
+static uin...
2018 Feb 20
4
[PATCH] drm/nouveau: Replace the iturbt_709 prop with the standarad COLOR_ENCODNIG prop
...0644
--- a/drivers/gpu/drm/nouveau/dispnv04/overlay.c
+++ b/drivers/gpu/drm/nouveau/dispnv04/overlay.c
@@ -46,7 +46,6 @@ struct nouveau_plane {
struct drm_property *brightness;
struct drm_property *hue;
struct drm_property *saturation;
- struct drm_property *iturbt_709;
} props;
int colorkey;
@@ -54,7 +53,7 @@ struct nouveau_plane {
int brightness;
int hue;
int saturation;
- int iturbt_709;
+ enum drm_color_encoding color_encoding;
void (*set_params)(struct nouveau_plane *);
};
@@ -166,7 +165,7 @@ nv10_update_plane(struct drm_plane *plane, struct drm_crtc *crtc,
if (fb->...
2010 Jan 06
1
How do I upside down colorkey of levelplot?
Hi, all.
I made the main figure of levelplot upside down by transposing and
proper indexing; upper left corner is the biginning of matrix.
However, I can't figure out how I can upside down the vertical
colorkey right side of the main figure.
Any help will be greatly appreciated.
Minho
2011 Nov 14
1
Adding units to levelplot's colorkey
How to add units (e.g. "cm") to the color key of a lattice levelplot?
The plots looks fantastic, but it would be nice to indicate somewhere
near the end of the color key that the values associated with its colors
are in centimeters or some other physical units.
The only thing I find is the possibility to specify the labels so that
one explicitly includes the units. That leaves