Displaying 4 results from an estimated 4 matches for "scale_colour_grey".
2008 Sep 10
1
ggplot2: edge outlines on points
...EdgeColor" so
I've been working on trying to overlay two plots of the same points,
one plotted with fills and the other plotted with edge outlines (here
is my conceptual code):
pfill <- ggplot(data=DF, aes(x=X, y=Y)) +
geom_point(aes(colour=TRT),size=4) +
scale_colour_grey(end=0.8) +
theme_bw
pedge <- ggplot(data=DF, aes(x=X, y=Y)) +
geom_point(aes(colour=TRT),size=4) +
scale_colour_grey(end=0.8) +
scale_shape(solid=FALSE) +
theme_bw
However, I can't figure out the correct syntax, if this is ev...
2011 Jul 10
2
grey colored lines and overwriting labels i qqplot2
...diamonds in a grey scale instead of colors. I
accomplished this (see graph 2) until I overwrote the label title for the
treatments and the colors came back (graph 1). I used these two commands:
p=ggplot(data = test, aes(x = YEAR, y = TOTAL, colour = TREATMENT)) +
geom_point() + facet_wrap(~country)+scale_colour_grey()+
scale_y_continuous("number of votes")+ scale_x_continuous("Years")+
scale_x_continuous(breaks=1:4) + scale_colour_hue(breaks='A', labels='label
A')+ scale_colour_hue(breaks='B', labels='label B')
How can I keep the grey scale, but avoid changi...
2010 May 16
1
problem with making multiple plots (geom_pointrange) in a loop (ggplot2)
...ot(ganges_subbasin_a2pre_sort ,aes(x = Month, y = med, ymin
= min, ymax = max, subset = CATCHMENT_ == subbasin_select)) +
ylab("Precipitation (mm)\n") + opts(title = paste("Projected
Precipitation 2030 - 2049 (Sub-Basin ", subbasin_select, ")\n", sep =
"")) + scale_colour_grey()
p + geom_pointrange(linetype = 2, colour = "navyblue") +
opts(axis.text.x = theme_text(colour = "black")) + opts(axis.text.y =
theme_text(colour = "black")) + opts(axis.ticks =
theme_segment(colour = "white"))
ggsave(paste(subbasin_select,&qu...
2010 Aug 12
2
drawing dot plots with size, shape affecting dot characteristics
Hi all,
I'm interested in doing a dot plot where *both* the size and color (more
specifically, shade of grey) change with the associated value.
I've found examples online for ggplot2 where you can scale the size of the
dot with a value:
http://had.co.nz/ggplot2/graphics/6a053f23cf5bdfe5155ab53d345a5e0b.png
Or scale the color with the value: