Displaying 3 results from an estimated 3 matches for "fishtank".
2008 Feb 08
2
xyplot and lsegments
Hi,
How might I use xyplot to plot segments where the segments are in the
input data? (ie a directed acyclic forest).
Here's an example in base graphics:
n = data.frame(id = c(1,2,3,4), parent = c(0,1,2,2), value =
c(5,5.5,7,3), date = c(1,2,3,3.5))
plot(n$date, n$value)
do.call(
segments,
with(
merge(n,n,by.x="parent", by.y="id"),
2009 Jul 16
2
GGPLOT Clipping Regions
Hi there,
I'm trying to find out the command to stop clipping to plot region in
ggplot.
I have a bar chart (axis flipped) with labels on the bars, but the
labels are clipped at the plot region box.
I know it's possible to turn this off for base and lattice, but how
about ggplot?
par(xpd=NA)
The ggplot2 manual doesn't seem to mention it, and a search for
ggplot and
2008 Apr 15
1
by inconsistently strips class - with fix
summary:
The function 'by' inconsistently strips class from the data to which
it is applied.
quick reason:
tapply strips class when simplify is set to TRUE (the default) due to
the class stripping behaviour of unlist.
quick answer:
This can be fixed by invoking tapply with simplify=FALSE, or changing
tapply to use do.call(c instead of unlist
executable example: