[RkWard-devel] length() and na.rm
Thomas Friedrichsmeier
thomas.friedrichsmeier at ruhr-uni-bochum.de
Fri Aug 18 14:43:17 UTC 2006
On Thursday 17 August 2006 13:15, Thomas Friedrichsmeier wrote:
> png (...) would take additional arguments width, and height, so we could
> extend rk.graph.on (), to include those parameters (or simply to accept
> a '...'-parameter and pass it on to png ()).
> I'll add something to CVS later, and then write back.
Ok, in CVS rk.graph.on () is now:
"rk.graph.on" <- function (width=480, height=480, ...)
{
filename <- rk.get.tempfile.name(prefix = "graph", extension = ".png")
png(filename=file.path(filename), width=width, height=height, ...)
cat(paste("<img src=\"", filename, "\" width=\"", width, "\" height=\"",
height, "\"><br>", sep = ""),
file = rk.get.output.html.file(), append = TRUE)
}
So you can simply specify width and height according to your needs (480*480 is
the default of png (), so if you omit the parameters, everything should
remain as before).
Regards
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20060818/f00b48b7/attachment.sig>
More information about the Rkward-devel
mailing list