similar to: Using a constant scale across X-Y plots

Displaying 20 results from an estimated 6000 matches similar to: "Using a constant scale across X-Y plots"

2010 Mar 22
1
Add title to color spectrum legend in xyplot
Hi, I have a plot that is essentially the same as that in Figure 5.6 of "Lattice - Multivariate Data Visualization with R". The key difference is that I would like to add a title to top of the grey color spectrum legend, but have thus far been unsuccessful. I've tried a variety of options, but to no avail. I'm new to R, and admittedly I don't understand the
2002 Dec 06
2
Controlling graphics parameters in lattice
I'm just starting to work with lattice graphics, and am having difficulty understanding how to control various graphic parameters (font sizes, etc.). [I'm actually using xyplot via plot.effect() in the car package, and would like to be able to set some global defaults.] I read ?xyplot and ?trellis.par.set-- which contains no complete list of parameters, just a reference to
2002 Jan 09
3
lattice problems under Win2K and R-1.4.0
I'm having problems copying and saving lattice graphs using R-1.4.0 under Win2k. It seems I've see this alluded to recently in R-help. If I do the following example: > data(quakes) > xyplot(long ~ lat , data = quakes) And then try to copy or save the graph as either a metafile or bitmap or if I use any of the bitmap/metafile devices via (for example) >
2010 Apr 04
2
One question about saving graph by using xyplot
Hey, folk. I am trying to get many figures by using the function "xyplot" in the library "lattice". I tried to using the loop to finish it quickly. But I cannot open the saved file after I run the program. But if I use the function "plot" to get other simply figures, it can work. So I want to ask how I can get the saved figures by using "xyplot". The
1997 Oct 17
1
R-beta: memory problem vith "dist" on W95
Using Rseptbeta for Windows 95 I encountered this problem: > library(mva) > data(quakes) > dist(quakes) Error: memory exhausted I'm using a pentium 133 with 32 MB ram memory! What I must to do? Thanks and excuse me for my english! Andrea Rossetti, rossetti at stat.unipg.it _______________________________________________________ Statistica & Informatica per la Gestione delle
2010 Mar 10
2
calling map() in xyplot()
Hi All, I'm trying to add a map on the following lattice plot, but not correctly... can anyone help please... R Code: require(lattice) us.map <- map(plot = FALSE, fill = TRUE) Depth <- equal.count(quakes$depth, number=8, overlap=.1) xyplot(lat ~ long | Depth, data = quakes, panel = function(...) { panel.polygon(us.map$x,us.map$y) panel.xyplot(...) } ) Any help would be
2010 Nov 17
1
Color on trellis device
Hi, I try to make a xyplot withou colors. I try: pdf(file="test.pdf") trellis.device(color=F) Depth <- equal.count(quakes$depth, number=8, overlap=.1) xyplot(lat ~ long | Depth, data = quakes) dev.off() the graphic is showed without colors in a X device but it dont work saving directly on pdf device. How I made to put color off in trellis device? Thanks Ronaldo -- 2ª lei - Na
2009 May 02
1
lattice levelplot axis + custom annotations
How would I set the "scales" property of a lattice levelplot, so that I can add specific annotations at specific positions? For example, I have a 200 x 1000 element levelplot. Along the y-axis (along the 1000-element axis) I would like to add annotations on the left side of the levelplot at elements 120, 300, 500, and 805, which represent clusters of interest. Currently I have
2009 Nov 11
7
Gr�fico xyplot
Hola a todos, Tengo que construir un gráfico para una base de datos que tengo en el que representar para los individuos de esta base su altura vs peso en función de su edad. Para ello, hay que utilizar los gráficos condicionados. En primer lugar usé la función coplot pero cargando el paquete lattice se pueden utilizar funciones que generan gráficos más completos, como es el caso de la función
2010 Nov 09
1
Lattice: xyplot group title format
Dear all, if I plot a lattice xyplot like: library(lattice); require(stats); Depth <- equal.count(quakes$depth, number=8, overlap=.1) xyplot(lat ~ long | Depth, data = quakes) How can I manipulate the group title format (here: Depth)? Like the font size, position, etc. Best Marcus
2008 Apr 08
1
Change the position of panel strips in a lattice plot.
Hi all, In lattice plots, is there any option to position the panel strips with text below each subgraph, instead of above? i.e. in: Depth <- equal.count(quakes$depth, number=8, overlap=.1) xyplot(lat ~ long | Depth, data = quakes) ,is there any way to make "Depth" appear below the subgraphs, instead of above? I've been looking through the lattice documentation and the list
2008 Sep 29
1
Lattice: don't draw unlabled tick marks
If I only want axis labels on the left and bottom I can set alternating=F like in the following example: Depth <- equal.count(quakes$depth, number=8, overlap=.1) xyplot(lat ~ long | Depth, data = quakes, scales=list(alternating=F) I also would like to get rid of the unlabeled tick marks (top and right). How can I do that? cu Philipp -- Dr. Philipp Pagel Lehrstuhl f?r Genomorientierte
2007 Sep 17
1
side bars on dendrograms with latticeExtra
Dear all, I am using the heatmap representations of latticeExtra package and I would be interested to draw color side bars representing the groups of a factor of interest. From my understanding of : > help(dendrogramGrob) ... The 'add' argument can be used for additional annotation at the base of the dendrogram. It should be a list with one component for each row,
2002 Apr 22
2
lattice help
I'm new to lattice and can't figure out what the problem is with the following example: ######################### > library(lattice) Loading required package: grid Attaching package `lattice': The following object(s) are masked _by_ .GlobalEnv : xyplot The following object(s) are masked from package:base : levels > test.data <- data.frame(x=rnorm(100), +
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) levelplot(z ~ x * y,
1998 Mar 18
1
R-0.61.2 and March 17 snapshot
I just built 0.61.2 on an hpux-10.2 system. WHen I do a demo I am getting : > data(quakes) [1] "quakes" Warning: invalid 'cutoff' for deparse, used default Every statement seems to trigger this response. I also built the march17 snapshot and it does not have this behavior. March 17 snapshot has one problem that I noticed: when I built a contributed lib with data, and if
2012 Jan 06
1
Can levelplot colorkeys display a logarithmic scale evenly?
I'm using the {lattice} "levelplot" function to make a (more or less) 2-d histogram, and for the most part it's working fine with my data. However, I can't get the color key to do what I need. I can give it labels and custom cutoffs, but my cutoff lines (and hence my labels) aren't evenly spaced, instead they're more-or-less logarithmic, starting at
2009 Apr 08
1
how to adjust titles on sub-plots in levelplot / contour plot?
Hello, I have a (relatively long) function script that generates a levelplot. I don't want to include all of the code, so I have attached in file "miniDataSet.csv" an example for the data set "miniDataSet" that is called below. The function works OK, except that when the variables in the "splitCol" column get very large (as they are in this data set I
2006 Jun 08
1
panel.abline and xyplot
Dear All, I am wondering on how to use the abline.xyplot with xyplot such that I will have different vertical lines for each panel. More sepcifically, suppose that the xyplot generates 4 panels defined by the combination of two binary variables: X_1 and X_2. i.e. xyplot(Y ~ Z | X_1*X_2, data = df) I want something like: abline(v = 5) if X_1=0 and X_2 = 0 abline(v =
2003 Dec 01
1
Re: using shapefile as owin
My sincerest apologies, as this is a very elementary problem, but I have searched through archives and FAQs and on the web, and I am at the end of my own resources. I need to do analysis of a spatial point process occuring with four counties, using spatstat. I've had no trouble importing the shapefiles, but I can't seem to figure out what I need to do in order to use the boundary as an