just add the variable to whatever geoms you are adding to the plot
(for example, geom_point has a color option.
ian
On Tue, Jan 15, 2013 at 10:11 AM, Bruce Miller <
bats...@gmail.com> wrote:
> Hi all,
>
> What is the bet way to add the Geom color by option e.g. colour = Species
> in plots so each point is colored different to match the Species variable?
>
> When using GGplot this is added like this example below:
>
> ggplot(ElSal, aes(Date, elapsed, colour = Location)) +
> geom_jitter() +
> facet_wrap(~ Species)
> #adding the ylab line works.
> breaks <- (1:24) * 3600
> labels <- paste(c(19:23, 0:18), "00", sep = ":")
> f=png(file=" El Salonl_plot.png", width = 1000, height = 600,
> units = "px", pointsize = 8, bg = "white",
> res = NA, restoreConsole = TRUE)
>
> I vaguely recall there is a way in Deducer to display the actual code in the
> console where I could copy the plot lines and add the geom parameter color=
> whatever
>
>
> Tnx
> Bruce