search for: geom_area

Displaying 14 results from an estimated 14 matches for "geom_area".

2010 Jan 26
5
Strange tick in ggplot geom_area; and ordering, again
...factor")), p = c(0.04, 0.02, 0.26, 0.6, 0.07, 0.07, 0.05, 0.33, 0.42, 0.14)), .Names = c("dur", "score", "p"), class = c("cast_df", "data.frame")) # columns do not ad to 100% because of rounding; never mind qplot(dur,p,data=cf1, fill=score)+ geom_area() -- View this message in context: http://n4.nabble.com/Strange-tick-in-ggplot-geom-area-and-ordering-again-tp1294692p1294692.html Sent from the R help mailing list archive at Nabble.com.
2010 Feb 03
1
color blending and transparency
I am using ggplot and posted this question at that helplist. It was suggested that I try a more general R-help list for a possible solution to this problem. Within ggplot, I am using geom_area with red and blue and expect where they overlap should be purple. But instead, it's dark red. Playing with alpha and with different colors doesn't seem to solve the problem. Here's a very simple reproducible example R --arch x86_64 library(ggplot2) x<-c(24,55,69,73) y<-c(44,5...
2011 Mar 29
1
Multiple area plots to share the same x-axis
...i.col)) ii.p <- ii.p + 1 } } } set <- read.table(file="http://www.jovian.nl/set.csv", head=1, sep=",") set2 <- read.table(file="http://www.jovian.nl/set2.csv", head=1, sep=",") library(ggplot2) s <- ggplot(set, aes(x = time, y = hours)) + geom_area(colour = 'red', fill = 'red', alpha = 0.5) + geom_area(stat = 'smooth', span = 0.2, alpha = 0.3) + ylim(0,40) s1 <- ggplot(set2, aes(x = time, y = hours)) + geom_area(colour = 'red', fill = 'red', alpha = 0.5) + geom_area(stat = 'smooth',...
2011 Mar 24
1
questions regarding stat_smooth in ggplot area plot
Hello, I drew a simple area plot using ggplot2 using set <- read.table(file="http://www.jovian.nl/set.csv", head=1, sep=",") library(ggplot2) ggplot() + layer( data = set, mapping = aes(x = time, y = hours), geom = "area", stat="smooth", color="red" ) + layer( data = set, mapping = aes(x = time, y = hours), geom = "area",
2010 Feb 08
3
ggplot2 stacked line plot
...s trying to figure out how to generate a stacked line chart using ggplot2. This type of chart can be generated in excel 2007 by selecting: Chart type > Line > Stacked line. I can generate a stacked area chart using the following code: p <- ggplot2(~, aes(x = ~, y = ~, colour = Type)) + geom_area(aes(position = 'stack', fill = Type)) However, when I try and replicate this using the following code for geom_line: p <- ggplot(~, aes(x = ~, y = ~, colour = Type)) + geom_line(aes(position = 'stack')) the resulting plot is not stacked - i.e. each 'Type' is plotted...
2023 Mar 27
1
Cambiar orden top-down stacked area ggplot2
...t;C7"), times=6)) sbcd<-c(0, 0, 0, 0, 0, 0, 0, 90, 164, 132, 175, 234, 6, 0, 265, 73, 143, 595, 560, 94, 3, 256, 72, 157, 657, 618, 143, 3, 279, 75, 180, 688, 711, 205, 5, 275, 95, 185, 672, 817, 305, 5) data <- data.frame(year, sbcd, cat) ggplot(data, aes(x=year, y=sbcd, fill=cat)) + geom_area()+ scale_fill_manual(values=c("lightgoldenrodyellow","#FEE391","#FEC44F","#FE9929","#CD6600","#8B1A1A","red")) [[alternative HTML version deleted]]
2009 Jan 22
1
ggplot2 example
...er")) upper lower <- with(economics, data.frame(date,value = unemploy,position = "lower")) lower #upper$date <- as.Date(upper$date,"%m/%d/%Y") #lower$date <- as.Date(lower$date,"%m/%d/%Y") ggplot(mapping = aes(x=date, y=value)) + geom_line(data = upper) + geom_area(data = lower) + facet_wrap(~ position, scale = "free_y",ncol=1) Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service California, USA
2016 Sep 06
2
Ayuda con gráfico típico de histograma más linea
...rmat = "%H:%M", tz="GMT-2") > ft$Miles <- as.numeric(gsub("\\.", "", as.character(ft$Miles))) > ft$Share <- as.numeric(gsub("\\,", ".", as.character(ft$Share))) > > ggbar <- ggplot(ft, aes(x = hora, y = frec)) + > geom_area(fill= "gray") + > scale_x_datetime(date_breaks = "5 mins", date_labels = "%H:%M") + > theme(panel.background = element_rect(fill = "white")) + > scale_y_continuous(limits=c(0,1500)) + > labs(x = "Minutos", y = "Tweets")...
2008 Sep 24
1
qplot, stacked area, own colourscheme
...;, "yellow", "saddlebrown") mycolors <- rep(mycolorscheme,3) myplot <- qplot(dateofsurvey, wert, data=mydata, geom="area", fill=cover_of, main = "Development of cover, ZU-316", ylab="projective Cover[%]", xlab = "Year") myplot + geom_area(colour = mycolours) What am I doing wrong? Thank you in advance, Albin -- | Albin Blaschka, Mag.rer.nat. | Etrichstrasse 26, A-5020 Salzburg | * www.albinblaschka.info * www.thinkanimal.info * | - It's hard to live in the mountains, hard but not hopeless!
2008 Apr 04
0
ggplot2 - version 0.6
...hanged default range to [0.5, 3] to better reflect new sizing decisions * scale_size: legends resize to avoid overlaps * scale_x_continuous, scale_y_continuous: new convenience functions xlim and ylim (and zlim) that make it even easier to adjust the limits of the x, y, and z axes * stat_bin, geom_area: fixed bug in combination of stat_bin and geom_area that made it difficult to draw frequency polygons * stat_bin: fixed bug which resulted in increased counts when the x axis was a categorical variable with a single level (thanks to Bob Muenchen for pointing this out!) * stat_bin: no longer inc...
2008 Apr 04
0
ggplot2 - version 0.6
...hanged default range to [0.5, 3] to better reflect new sizing decisions * scale_size: legends resize to avoid overlaps * scale_x_continuous, scale_y_continuous: new convenience functions xlim and ylim (and zlim) that make it even easier to adjust the limits of the x, y, and z axes * stat_bin, geom_area: fixed bug in combination of stat_bin and geom_area that made it difficult to draw frequency polygons * stat_bin: fixed bug which resulted in increased counts when the x axis was a categorical variable with a single level (thanks to Bob Muenchen for pointing this out!) * stat_bin: no longer inc...
2013 Mar 07
3
ggplot2 y elipse.
Buenas tardes, Estoy intentando mejorar un gráfico que construyo pero de manera "bruta" y quiere encontrar una manera más eficiente. El gráfico en cuestión tiene más partes pero para simplificar la parte que me interesa es esta: [image: Imágenes integradas 5] Esto es una elipse de confianza de unos puntos, la elipse la consigo ayudándome de dataEllipse (paquete car), para llegar a
2010 Oct 05
2
is there a way to avoid "traveling" grid?
Hello! If you run the whole code below, it'll produce a stacked diagram. And it looks good - because the tick-marks are aligned with the grid. However, if I stretch the graph window, grid becomes misaligned with the tickmarks. Or, rather, it seems aligned for the first and the last tick mark, but not for tickmarks in between. Can it be addressed? Thank you! Dimitri ### Creating a data set
2016 Sep 03
2
Ayuda con gráfico típico de histograma más linea
Sí, la primera reunión de la temporada será el 8 de este mes. Un saludo, Carlos J. Gil Bellosta http://www.datanalytics.com El 3 de septiembre de 2016, 23:52, Ruben Tobalina Ramirez < lagrimaescrita en gmail.com> escribió: > Muchas gracias a todos! > > Pues si, Eric, R a veces me vuelve loco, tiene una lógica muy particular. > Miraré el libro, que lattice no lo he usado