similar to: lattice key (legend) with both points and lines

Displaying 20 results from an estimated 20000 matches similar to: "lattice key (legend) with both points and lines"

2006 Jun 01
3
Key titles in Lattice
Hi, I'm creating some lattice plots that have a key and I'd like to put a label on the key. The problem is that the text label for the key prevents the values of the group variables from being shown (see example below). I don't think that this is a feature, but I might be abusing the title arg for key. I'm using R Version 2.3.0 (2006-04-24) on Windows XP and lattice V0.13-8
2006 Dec 16
1
Seeking advice on lattice package in R2.4.0 concerning stripplot
Dear all, I am using the R 2.4.0 environment on Windows XP SP2 machine and trying to use the lattice package version 0.14-9 which you have kindly written to share with the R community. I have a question concerning the stripplot which I'd be very grateful if you can kindly advise me on: I used the dataset called trydata to plot a graph using stripplot (dataset attached), and the scripts
2005 Jun 30
1
FW: plot legend outside the grid
-----Original Message----- From: Ghosh, Sandeep Sent: Thursday, June 30, 2005 5:43 PM To: 'Berton Gunter' Subject: plot legend outside the grid Thanks for the pointers... I managed to get everything to look and feel the way I want except for the legend to plot outside the grid... Thanks for the note on the par, but I'm not able to it to plot outside the plot grid.. dataFrame <-
2008 Feb 19
1
Change the color and lines of the legend using bwplot
Dear list, I have following plot, where I have set the color (red and green) and lines (lty=2:3) in the panel.groups but can't not figure out how change the lines and color of the legend in the "key" to the same lines and color as in the panel.groups. bwplot(means ~ age | scales , dat, panel = "panel.superpose", groups = sex,scales = list(x = list(rot =
2004 Nov 21
1
Location of grobs etc on lattice output
Is there any way, after use of print.trellis(), to obtain the co-ordinates of the plot region, e.g., in what are then the native co-ordinates? e.g. library(DAAG) library(lattice); library(grid) data(cuckoos) pushViewport(viewport(layout=grid.layout(2, 1))) pushViewport(viewport(layout.pos.row=1)) cuckoos.strip <- stripplot(species ~ length, data=cuckoos) print(cuckoos.strip,
2003 Jan 15
2
[lattice] lines for stripplot (like dotplot) or jitter for dotplot?
I'd like to use stripplot for some plots because I want to use the jitter parameter. On the other hand, I'd like to use dotplot because I'd like to have the horizontal lines that it includes. dotplot doesn't have a jitter option and I'm not having any success with getting panel.grid(h=-1) with stripplot. Can anyone show me how to make dotplot-like lines on a stripplot? Or
2007 Jan 02
1
lattice panel.linejoin type question
Hello R Users! I'm trying to use the panel.linejoin function to draw points and lines (type="o") but it wouldn't do it. Modifying the panel.linejoin function as such (adding type argument to the panel.lines call). *original* panel.lines(vals[xx], yy, col = col.line, lty = lty, lwd = lwd, ...) *modified panel.lines(vals[xx], yy, col = col.line, lty
2004 May 04
1
Simple lattice graphics question
Dear all, I am using panel graphics to do a stripplot of a variable versus a shingle and putting a loess curve on the stripplot. I want the data jittered, but I can't seem to get the panel function to work. This jitter's the data, but of course doesn't give me the loess: > stripplot((g[,3]) ~ c,jitter=T,pch=".",scales=list(y=list(log=T))) But this doesn't give me
2023 Jan 28
1
lines through points in lattice legend
On Sat, Jan 28, 2023 at 2:49 PM Kenneth Knoblauch <ken.knoblauch at inserm.fr> wrote: > > Hi, > > I'm struggling to find if there is a simple way to make the lines and points overlap in a legend for a lattice plot using auto.key. Here is a toy example of what doesn't work (for me) as the lines and points are adjacent rather than overlapping: > > library(lattice)
2023 Jan 28
2
lines through points in lattice legend
Hi, I'm struggling to find if there is a simple way to make the lines and points overlap in a legend for a lattice plot using auto.key. ?Here is a toy example of what doesn't work (for me) as the lines and points are adjacent rather than overlapping: library(lattice) d <- data.frame(x = 1:2, y = 1:4, f = factor(letters[1:2])) xyplot(y ~ x, d, groups = f, type = "b",? pch =
2012 Jun 29
3
Data scaled by lattice::stripplot
For the following example, > library(lattice) > df<-data.frame(i=1:100,p=runif(100),id=rep(c('a','b'),100)) > summary(df[,'p']) Min. 1st Qu. Median Mean 3rd Qu. Max. 0.01165 0.33580 0.57520 0.53290 0.74540 0.98610 > stripplot(p~i|id,df) The plot that is output is as expected with the exception that the values are scaled by a factor of 100 in
2009 Sep 26
1
Lattice, stripplot (xyplot), plotting data with median line, numeric x-axis
All, On p.52 of Deepayan Sarkar's Lattice book there is a nice plot of showing residuals with median lines superimposed or various groups: library("lattice") stripplot(sqrt(abs(residuals(lm(yield~variety+year+site)))) ~ site, data = barley, groups = year, jitter.data = TRUE, type = c("p", "a"), fun = median) Suppose we wanted to make a similar plot for a
2007 Dec 25
1
both lines and plot characters in a lattice plot key
Hello, I have two short questions concerning a key (legend) in a lattice plot. I have points represented by two different plot characters (crosses and circles) and they are colored from light to dark gray. I would like to have 3 parts in my legend showing the two different plot characters in the first two lines and the last line should consist of a line segment for explaining the
2005 Jul 05
0
plot legend outside the grid
Thanks Bert for all the help. I got the legend figured out Friday but left early becoz of long weekend so didn't get a chance to reply.. I modified the plot margins a little bit and Here's what I finally had... par(mar=c(c(10, 6, 6, 10) + 0.1)); par(xpd=FALSE); with (dataFrame, stripchart(marbles_buried ~ genotype, method="jitter", vertical=TRUE, col = c('blue',
2008 Nov 14
1
Splitting a lattice stripplot across several pages
Hello, I have a stripplot with 200+ labels i.e i have network connections. The y-axis are the server port numbers and am graphing the number of packets in a connection. Roughly stripplot(totpacks~portnum,data=network) Due to the large number of server ports in my dataset, the y-axis labels overlap so I would like to split it across several panels(1 panel per page) with about 25-50 per
2012 Aug 22
1
Controlling line-join style in Lattice
R users, I am creating a series of scatterplots with Lattice's xyplot(). Some of the plotting symbols are squares with thick borders. The corners of the squares are rounded by default; I would like them to be square. In base graphics this is easily done with par(ljoin = "mitre"), and in grid graphics with gpar(linejoin = "mitre"). Is there an analogous parameter in
2009 Nov 02
1
Lattice: Saving Plots with Legend
Dear R Users! I've want to save a lattice "parallel" plot with legend as png: Plotting with legend works well, but when trying to save the plot there occurs a problem with the legend. ################################################### require(lattice) #Some data: data<-matrix(rnorm(100),ncol=5) #Plot works parallel(data)
2005 Nov 21
1
Howto? plot legend with no line behind the points
Hi R-help, We are using R 2.2 on Win XP and have a detail question on how the legend can be optimised. We use the following; -> plot(,type="b",...) The lines in the plot do not cross the points. How can we obtain the same effect in the legend? (points without a line through them..) We tried setting the pt.bg to white but this did not help. See script below. thanks, Jan
2011 Feb 10
1
Add different types of legend: line and points
Hello, I plot box plot, and add a point to the box indicating mean. I also add some range to the box width. I want to add legend for both the range (line) and mean (point). However, I cannot add line legend and point legend together. The code looks like the following. (1) First, I tried the following code, however, it plot a line across the point legend("*"). boxplot(count ~ spray,
2011 Jul 27
2
Creating a flat legend 'grob' for lattice xyplot
Hi, I want my xyplot legend to be flat, not tall, and there seems to be no way for xyplot's auto.key and key elements to do this: I tried many, many permutations of what I could find in the archives and reading the documentation. If there there's a way to make it flat, please tell me what the magic incantation is. Here's a simple example of what I like to see. The xyplot will be a