workhorses not intended for the presentation of results.
Bernd
-Original Message-
From: hadley wickham [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 07, 2008 8:10 PM
To: Engelmann, Bernd
Cc: r-help@r-project.org
Subject: Re: [R] consolidate legends in ggplot2
Hi Bernd,
>
Hi Bernd,
> Can ggplot2 handle bigger numbers of breaks by reusing aesthetics ?
No - the attributes were fairly careful picked to actually be
distinguishable, which is very hard to do above a certain number of
colours/shapes/linetypes etc.
But your approach (creating your own scales) is basicall
15, 3, 7, 8)
} else {
c(1, 2, 0, 3, 7, 8, 1, 2, 0, 3, 7, 8, 1, 2, 0,
3, 7, 8)
})[1:length(.$domain())]
}
ScaleShape$max_levels <- function(.) 18
-Original Message-
From: hadley wickham [mailto:[EMAIL PROTECTED]
Sent
On Feb 7, 2008 3:43 AM, Engelmann, Bernd <[EMAIL PROTECTED]> wrote:
> Hello,
>
> the same parameter for colour and shape aesthetics gives 2 legends:
>
> library(ggplot2)
> p <- ggplot(mtcars, aes(x=wt, y=mpg))
> p + geom_point(aes(colour=factor(cyl), shape=factor(cyl)))
>
> Can the 2 legends be con
Hello,
the same parameter for colour and shape aesthetics gives 2 legends:
library(ggplot2)
p <- ggplot(mtcars, aes(x=wt, y=mpg))
p + geom_point(aes(colour=factor(cyl), shape=factor(cyl)))
Can the 2 legends be consolidated to one with
colours and shapes of the symbols matched between legend and
5 matches
Mail list logo