similar to: Lattice: how to draw some text outside the panel?

Displaying 20 results from an estimated 5000 matches similar to: "Lattice: how to draw some text outside the panel?"

2005 May 20
2
Lattice: it seems, a bug in draw.key function
Dear r-help, Now I am drawing graphs with xyplot function. In order to place a legend under the plots I use the key argument in the xyplot function. One of the 'key' components is 'divide', which defines a number of points on the each line of the legend. The default is 3 points. I would like a single point, so I set divide = 1. Call to xyplot didn't produce
2003 Jul 23
1
lattice: how to format axis labels?
Dear r-help, I draw graphics with xyplot() function. Labels on the y axis are appearing as follows: "1.5, 1, 0.5, 0" I'd like to have them to be "1.5, 1.0, 0.5, 0.0", i.e. with fixed number of digits after the dot (one in this case). Is there any way to do this without implicit specifying labels? And some questions about font. Unfortunately I cannot
2003 May 13
1
several regression lines in panel of xyplot (trellis graphics)
Dear r-help, I need to draw xyplot() graphs with several regression lines: one line for the whole range of x (the variable on the horizontal axis) and two additional lines for subranges of x. Is it possible to make first regression line (panel.lmline(x,y,...);) to be drawn on the whole graph and regression lines of the subsets to be drawn only over their subsets? I have defined
2009 Jul 21
2
animated grid graphics
I need to make a fairly complex animated graphic and decided to use grid for it. A very simple example of what I need: ##============================================================================== library(grid) grid.newpage() pushViewport(plotViewport()) pushViewport(viewport(xscale = extendrange(c(0, 100)), yscale = extendrange(c(0, 100)))) grid.xaxis() grid.yaxis()
2003 Apr 16
2
layout.show()
Dear r-help, Please, be so kind, tell me what does mean the parameter of layout.show()? I use R 1.6.2... Windows NT 4.0 Unfortunately I cannot understand phrases from the help "n: number of figures to plot." what figures? "`layout.show(n)' plots (part of) the current layout, namely the outlines of the next `n' figures." what figures?
2003 Apr 24
1
RMySQL
Dear laurent, > This is what I did to make the connection : > > drv <- dbDriver("MySQL") > > con <- dbConnect(drv) Here's the error. You should give the database name. drv <-dbConnect(drv, dbname="dfghdfgsdfgsdfgsdfgsdfgsdfgsdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > Then I should be able to send requests. But when I
2003 May 16
1
substitute
Dear r-help, I have troubles with 'substitute'. I have the data frame with vectors data$area.0, data$area.20, etc... Command substitute(data$area.lon,list(lon=20)) returns data$area.lon but is expected to return data$area.20 Where did I do mistakes? -- Best regards Wladimir Eremeev mailto:wl at eimb.ru
2003 Apr 27
2
bug and proposed fix in print.trellis 1.7.0 (PR#2859)
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. ---1678264062-154654637-1051422990=:2626055 Content-Type: TEXT/PLAIN; charset=US-ASCII ---1678264062-154654637-1051422990=:2626055 Content-Type: TEXT/PLAIN; charset=US-ASCII;
2012 Feb 16
2
Defining a viewport scale in {Grid}
Am just feeling my way into the grid library, and cannot figure out how to define the plot limits. 3/5 of the example polygons below plot in the default 0-1 range viewport. But when I try to redefine the viewport the polygons plot in the same places. I also get the same result without employing push/pop. (As you can see from the scale I'm trying to introduce, I want to plot map polygons.)
2009 Jun 23
2
curvedarrow (some graphics problem)
Hi there, I just wonder how to draw this kind of picture... http://www.nabble.com/file/p24158796/b.jpg http://www.nabble.com/file/p24158796/a.jpg and this is what i have done %%%%% library(shape) library(diagram) curve(sin(x),bty="n",-8,8,yaxt="n",ylab="",xaxt="n",type="n",xlab="") axis(1,labels=F,at=seq(-8,8,1))
2011 May 14
1
Using dates on axis with Grid plots
Hi, I'm trying to use Grid plots and would like to have an X axis that represents dates. I have several years of data so I would like to be able to have labeled tick marks only intermittently (not one per date). I can transform the initial data from a date time string into POSIXlt or POSIXct, or Date objects. The issue is that when I try to layout the plot using: dev.off() pushViewport(
2003 Apr 15
2
troubles with displaying legend on the plot
Dear colleagues, I have troubles while trying to display legend on the plot. I have data.frame fr > fr year M1 M2 1 1979 58.85198 56.77303 2 1980 57.59725 55.93749 3 1981 57.32133 55.55232 4 1982 54.69320 53.10566 5 1983 56.58973 55.03811 6 1984 58.81363 56.97641 7 1985 58.35583 56.82091 8 1986 60.41842 58.45457 9 1987
2003 Apr 23
0
MySQL
Dear laurent, > But there are lots of commands I found in R docs which are "not found", > such as getTable. Deprecated (I successfully used dbListTables) or do I > simply miss a package ? >From RMySQL\NEWS: * added (almost) trivial convenience RS-DBI functions getTable(), assignTable(), existsTable(), and removeTable(). They all mimic the corresponding R/S get(),
2004 Aug 27
1
Plotting irregular grid as image or persp
Hi, I have an array of 2d node locations and an array triangles, and would like to plot something like a image or persp. An example of doing it with rgl is: library(ncdf) library(rgl) # wget http://www.maplepark.com/~drf5n/extras/teapot.nc teapot<-open.ncdf("teapot.nc") z<-get.var.ncdf(teapot,"tris") l<-get.var.ncdf(teapot,"locations")
2007 Oct 18
1
Lattice fails to draw insets
Hello all lattice experts! I'm currently trying to plot inset figures in my lattice graphics. The plot is composed out of two panels and in each panel I want to show an inset figure which is a closeup of the data in each panel. Thus in each panel I call xyplot again to plot the inset which I place in a grid viewport. Nevertheless, once my first inset plot is drawn, lattice aborts with an
2003 May 06
5
xyplot (lattice), strip.default
Dear r-help, I've got data of the following structure 1979 93.428747 0 1979 87.298608 20 1979 78.506340 40 ... 1979 45.567890 340 1980 60.815289 0 1980 49.630904 20 1980 24.981362 40 ... The first column is year and the last one is the longitude. I need a set of graphs showing the dependence of the middle value on the longitude, for each year, situated one blow the other.
2003 Mar 14
2
plot
Can anyone tell me how to plot on the same graph two different functions (of x) using two differnt y scales (axes 2 and 4)? Thanks Nelson
2002 Apr 08
2
user coordinates and rug plots in lattice graphics
Dear R list members, I'd like to produce rug plots at the bottom of panels in a trellis display (using the lattice package), but par("usr") doesn't return user coordinates for panels, and consequently rug fails, as the following example (suggested to me by Georges Monette) illustrates: > x <- rnorm(50) > y <- rnorm(50) > f <-
2003 Jan 20
3
Plotting w/multiple y-axes?
How do I plot using multiple(2) y-axes? I have two series that use the same x-data, but have very different scales. Appreciate any feedback, Per Bak
2013 Feb 27
1
lattice xyplot point labelling
This is my reproducible example tv.ms<-structure(list(inq = structure(4:17, .Label = c("D4", "D5", "D6a", "D6b", "D6c", "D7", "D8", "F4", "F5a", "F5b", "F6a", "F6b", "F6c", "F6d", "F7a", "F7b", "F8"), class =