Displaying 5 results from an estimated 5 matches for "plotm".
Did you mean:
plot
2005 Feb 07
2
Environment of a formula
...p a data frame with an attribute
which specifies how to plot some of the columns.
Up to now we have been doing this by giving the data frame
a `formula' attribute, that can be passed to plot.formula.
For example
dat <- data.frame(x=1:100,y=runif(100),z=100:1)
attr(dat, "plotme") <- (z ~ x)
......
......
if(missing(desiredformula))
desiredformula <- attr(dat, "plotme")
plot(desiredformula, data=dat)
We just got bitten by the fact that a formula object has a `.Environment'
attribute, which may be huge, depending on the en...
2003 Nov 07
1
xyplot
Dear all,
I am trying to use xyplot inside a function
plotme<-function(dataframe)
{
xyplot(x~y|z,data=dataframe)
}
x,y,z are members of the data frame.
When calling function
library(lattice)
plotme(dataframe)
nothing happens. (R-1.8.0, SuSe Linux 8.1)
What am I doing wrong? Many thanks in advance
Peter
2007 Jan 31
3
possible bug: dev.copy / could not find any X11 fonts
...dev <- function(create=TRUE) {
devices <- dev.list()
x11dev <- which(names(devices)=="X11")
if (length(x11dev)==0) {
if (create) {
x11()
dev.cur()
} else {
NULL
}
} else {
devices[tail(x11dev,1)]
}
}
plotf <- function(avc,k,...) {
plotm <- function(m, ...)
plot(1:5,m,type="l",...)
## open ps device
postscript(sprintf("plot-%03d.eps",k))
psdev <- dev.cur()
dev.control("enable")
## plot
layout(1:3)
plotm(avc$v, main="value", ylab="v")
plotm(avc$cons, main=&q...
2011 Mar 25
0
Bounding ellipse for any set of points
...p://stackoverflow.com/questions/1768197/bounding-ellipse
##
## Parameters
## xy a two-column data frame containing x and y coordinates
## if NULL then a random sample set of 10 points will be
generated
## tolerance a tolerance value (default = 0.005)
## plotme FALSE/TRUE. Plots the points and ellipse. Default TRUE.
## max.iter The maximum number of iterations. If the script tries this
## number of iterations but still can't get to the tolerance
## value, it displays an error message and returns NULL
## shi...
2011 Jul 21
0
Bounding ellipse for any set of points
...8197/bounding-ellipse
> ##
> ## Parameters
> ## xy a two-column data frame containing x and y coordinates
> ## if NULL then a random sample set of 10 points will be
> generated
> ## tolerance a tolerance value (default = 0.005)
> ## plotme FALSE/TRUE. Plots the points and ellipse. Default TRUE.
> ## max.iter The maximum number of iterations. If the script tries this
> ## number of iterations but still can't get to the tolerance
> ## value, it displays an error message and returns...