Displaying 6 results from an estimated 6 matches for "scale_colour_gradientn".
Did you mean:
scale_colour_gradient2
2010 Nov 01
1
ggplot map bounds
...the plot
to be from 33N to 37N and 85W to 75W. The way this is now, if I try to
subset the states object, I get a garbled mess of lines. The rest of the
code provides what I'm trying to do with the attached data.
usamap + geom_point(data=obsmeans,aes(x=lon,y=lat,colour = month_1),size=5)
+
scale_colour_gradientn(data=obsmeans,colour=rev(rainbow(17)),breaks=seq(5,21,by=1),limits=c(5,21))
Any ideas for how I can fix this map would be appreciated!
Adrienne
--
Adrienne Wootten
Graduate Research Assistant
State Climate Office of North Carolina
Department of Marine, Earth and Atmospheric Sciences
North Caro...
2011 Apr 03
1
another question on shapefiles and geom_point in ggplot2
...)) +
geom_path(color="white") + theme_bw() # remove this if you don't want black
and white background
p + geom_point(data=manuel_points,aes(size=ACE,colour=ACE,group=NULL)) +
scale_size(name = "Número\nde\nespecies", breaks = c(2, 4, 6, 8, 10, 12, 14,
16, 18, 20)) +
scale_colour_gradientn(name = 'Número\nde\nespecies',
colours = rainbow(6), breaks = c(2, 4, 6, 8, 10, 12, 14, 16, 18, 20))+
xlab("Longitud") + ylab("Latitud") + opts(axis.text.x = theme_text(size = 8,
vjust = 1)) +
opts(axis.text.y = theme_text(size = 8, hjust = 1))
Felipe D. C...
2012 Feb 24
1
help filtering points from a scatterplot
...ching what I've been able to plot with ggplot - sorry for the file size. I'd like to be able to plot just the points shaded in blue, for example.
Any help is appreciated.
Kelly V.
Code for the ggplot:
> ggplot(chr9, aes(x=Window, y=ExplantInv, colour=ExplantInv))+
+ geom_point() +
+ scale_colour_gradientn(colours=rainbow(4))
Example Data:
> head(chr9, n=50)
Window Explant ExplantInv
1 168030 0.036590781 0.9634092
2 168031 1.000000000 0.0000000
3 168032 1.000000000 0.0000000
4 168033 1.000000000 0.0000000
5 168034 1.000000000 0.0000000
6 168035 1.000000000 0.0000000
7 16803...
2009 Dec 22
0
ggplot2 version 0.8.5
...* scales: all scales check that breaks are supplied if labels are, and
that breaks and labels are the same length (implements #40)
* scales: if breaks are a named vector, the names will be used as labels
(thanks to suggestion by David Kahle)
* scale_colour_gradient, scale_colour_gradient2 & scale_colour_gradientn now
have formatter argument to match scale_continuous
* updated citation to refer to the ggplot2 book
Bug fixes
* coord_cartesian now correctly sets limits when one or both of the position
scales are non-linear. (fixes #17)
* coord_equal: now works with non-linear scales (fixes #13)
* coord_...
2009 Dec 22
0
ggplot2 version 0.8.5
...* scales: all scales check that breaks are supplied if labels are, and
that breaks and labels are the same length (implements #40)
* scales: if breaks are a named vector, the names will be used as labels
(thanks to suggestion by David Kahle)
* scale_colour_gradient, scale_colour_gradient2 & scale_colour_gradientn now
have formatter argument to match scale_continuous
* updated citation to refer to the ggplot2 book
Bug fixes
* coord_cartesian now correctly sets limits when one or both of the position
scales are non-linear. (fixes #17)
* coord_equal: now works with non-linear scales (fixes #13)
* coord_...
2011 Aug 15
2
plotting segments only and in color
Hello,
I've a question concerning the display of interval data.
A sample dataset where X is an interval between Xa and Xb
which should be displayed:
Y=c(15,14,23,18,19,9,19,13)
Xa=c(17,22,21,18,19,25,8,19)
Xb=c(22,22,29,34,19,26,17,22)
X = (Xa+Xb)/2
It's easily possible to plot the mean of the interval like:
plot(X,Y)
afterwards I can create lines for the interval with: