Displaying 5 results from an estimated 5 matches for "plotme".
Did you mean:
plotmo
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 env...
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
Hi,
I am experiencing something strange, and thought I would ask before
reporting a bug. I trimmed it down to a self-contained example,
attached as an R file. The purpose of the functions is to save the
plots into a ps file and simultaneously plot them on an x11 device,
but don't open a new one if there is already one opened (I don't want
the repositioning / flicker).
When running the
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
## shif...
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...