[R] GGPLOT Clipping Regions

2009-07-16 Thread Alex Brown
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?

Re: [R] by inconsistently strips class - with fix

2008-04-17 Thread Alex Brown
1], FUN = function(x) x) > - attr(*, "class")= chr "by" > > c() does not do the same thing as unlist() in general, and it is > untrue that 'c does not strip class'. What happens in your example > is that there is a c() method for your class (an

[R] by inconsistently strips class - with fix

2008-04-15 Thread Alex Brown
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,

[R] xyplot and lsegments

2008-02-08 Thread Alex Brown
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

Re: [R] Inconsistent lattice scales$x$at, label behaviour for POSIXct

2008-02-06 Thread Alex Brown
not know how to convert 'at' to class "POSIXlt" (fails) -Alex On 5 Feb 2008, at 20:59, Deepayan Sarkar wrote: > On 2/5/08, Alex Brown <[EMAIL PROTECTED]> wrote: >> I have encountered the following behaviour in lattice in 2.6.1 (and >> 2.4.0) which di

Re: [R] Incomplete ouput with sink and split=TRUE

2008-02-06 Thread Alex Brown
you could use the unix function 'script' before invoking the R interpreter. example session: $ script Script started, file is typescript [x86_64|[EMAIL PROTECTED]:~] $ R --quiet --vanilla > 1:10 [1] 1 2 3 4 5 6 7 8 9 10 > q() [x86_64|[EMAIL PROTECTED]:~] $ exit exit Script done, file

[R] Inconsistent lattice scales$x$at,label behaviour for POSIXct

2008-02-05 Thread Alex Brown
ls=letters[1:4])),xlim=baseval+c(3,10)) # POSIXct baseval = as.POSIXct("2007-01-01"); xyplot(1:10 ~ (baseval + 1:10) , scales=list(x=list (at=baseval+1:4, labels=letters[1:4])),xlim=baseval+c(3,10)) in particular, compare the Date and POSIXct versions -Alex Brown

Re: [R] shrink a dataframe for plotting

2007-11-21 Thread Alex Brown
from the original at that resolution. -Alex Brown On 21 Nov 2007, at 10:24, Thibaut Jombart <[EMAIL PROTECTED] > wrote: > Alexy Khrabrov wrote: > >> I get tables with millions of rows. For plotting to a screen-size >> jpg, obviously just about 1000 points are eno