search for: coord_polar

Displaying 20 results from an estimated 41 matches for "coord_polar".

2012 Mar 12
1
ggplot2: coord_polar
...(c(1, 2, 1, 2)), se = c(0.1, 0.3, 0.3, 0.2) ) df2 <- df[c(1,3),] limits <- aes(ymax = resp + se, ymin=resp - se) dodge <- position_dodge(width=0.9) p <- ggplot(df2, aes(fill=group, y=resp, x=trt)) p <- p + geom_bar(position=dodge) # This is OK print(p) # This is OK print(p + coord_polar()) p <- p + geom_errorbar(limits, position=dodge, width=0.25) # This is OK print(p) # Error at the next statement print(p + coord_polar()) [[alternative HTML version deleted]]
2009 Jan 24
2
ggplot2 - how to change location / position of wind rose axis labels?
...English_United Kingdom.1252;LC_NUMERIC=C;LC_TIME=English_United Kingdom.1252 attached base packages: [1] grid stats graphics grDevices utils datasets methods base other attached packages: [1] ggplot2_0.8.1 reshape_0.8.2 plyr_0.1.4 proto_0.3-8 #Using an example form the coord_polar help library(ggplot2) movies$rrating <- factor(round_any(movies$rating, 1)) movies$budgetq <- factor(chop(movies$budget, 4), labels = 1:4) doh <- ggplot(movies, aes(x = rrating, fill = budgetq)) doh + geom_bar(width = 1) + coord_polar() #Now with my theme (hacked from theme_bw) getting cl...
2010 Mar 09
1
ggplot2 rose diagram
Dear R gurus - consider this plot: library(ggplot2) dat <- sample(1:8,100,replace=TRUE) smp <- ggplot(data.frame(dat), aes(x=factor(dat),fill=factor(dat))) + geom_bar(width=1) smp + coord_polar() Q1. How do I change the font size and weight of bar labels (1,2,3...)? I've been wallowing in the 'Themes' structure and I just can't figure out the correct place to change the definitions. Along these same lines, what does 'strip' mean when referring to strip text?...
2012 Jan 03
4
Changing X axis of ggplot
Thanks to Joshua Wiley for turning me on to ggplot2. I am making a plot using this: p <- ggplot(dallas, aes(x = offense_hour)) + geom_bar() + coord_polar() Dallas is a data frame, and offense_hour is a column with chron objects from the chron library. In this case, the chron object was created with the times function. It is only a time (H:M:S) with no date attached. The plot shows up fine, but the X axis labels are 0.0 through 1.0. How do I conver...
2009 Dec 04
2
[ggplot2] Wind rose orientation
...is the code from my Org-babel session: #+begin_src R :session library(ggplot2) wind.data <- read.csv("pmrf_windrose_info_new.csv") wind <- ggplot(wind.data, aes(x = degree, y = time, fill = wind)) wind.bar <- wind + geom_bar(stat = "identity") wind.bar + coord_polar() #+end_src All the best, Tom Thomas S. Dye, Ph.D. T. S. Dye & Colleagues, Archaeologists, Inc. Phone: (808) 529-0866 Fax: (808) 529-0884 http://www.tsdye.com [[alternative HTML version deleted]]
2007 Dec 16
2
Changing the origin in polar.plot in plotrix package
I am trying to draw a polar plot, which is easy enough to do in the plotrix package through the polar.plot function. However I would like to change the origin of the length vector. For instance all my length values are between 75 and 85, so instead of having the origin as 0 (the default) I'd like it to be, say, 50. Is there any way do to this in the polar.plot function, or if not is there an
2009 Nov 14
2
formatting dates in axis labels (ggplot2)
...(ggplot2) cxc1 <- ggplot(Night1, aes(x = factor(Date), y=Deaths, fill = Cause)) + # do it as a stacked bar chart first geom_bar(width = 1, position="identity", color="black") + # set scale so area ~ Deaths scale_y_sqrt() # A coxcomb plot = bar chart + polar coordinates cxc1 + coord_polar(start=3*pi/2) + opts(title="Causes of Mortality in the Army in the East") + xlab("") # why doesn't this work? cxc1 <- cxc1 + scale_x_date(format="%b %Y", major="months") cxc1 stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adj...
2010 Nov 23
1
specifying colours in a ggplot2 piechart
...ge", i = "red", j = "blue", k = "green", l = "orange", m = "red", n = "blue", o = "green", p = "orange" ) pie1 <- ggplot(mypie, aes(x = factor(zz), fill = factor(zz))) + geom_bar(width = 1) pie2 <- pie + coord_polar(theta = "x") + scale_colour_brewer(Pastel1) pie2 # try to get even nastier piechart with ugly colours to provide rast. pie3 <- pie2 + scale_colour_manual(value=mycolours) pie
2013 Mar 15
0
ggplot2, arrows and polar coordinates
Dear R users, The following issue has been already documented, but, if I am not mistaken, not yet solved. This issue appears while trying to plot arrows with "geom_segment" (package ggplot2), with polar coordinates ("coord_polar"). The direction of some arrows is wrong (red rectangle). Please find herewith an example. Does someone know how to deal with that issue? Best Regards, Pascal Oettli #---------------------------------------------------------------------------------- # Example adapted from the help page of...
2012 Nov 30
4
Nightingale’s Rose chart-any suggestion?
Hello, Everyone. Does anyone know how to create a Nightingale’s Rose chart by using R? Hopefully, the graph could be displayed like this: http://mbostock.github.com/protovis/ex/crimea-rose.html Thanks a lot. Kind regards, Henry [[alternative HTML version deleted]]
2008 Jun 04
1
ggplot questions
...;), az = c(0, 90, 180, 270, 360), dist = c(0, 16, 16, 16, 16)), .Names = c("oplt", "rplt", "az", "dist"), row.names = c(NA, -5L), class = "data.frame") ### plot version 1, setup plot structure first, add 'data' points later ggplot() + coord_polar() + layer( data = labs, mapping = aes(x = az, y = dist, label = rplt), geom = "text") + scale_x_continuous(breaks=c(90, 180, 270, 360)) + layer( data = test, mapping = aes(x = az, y = dist, label = rplt), geom = "text") ### plot version 2, try the same all in one step ggplot()...
2010 Jul 07
0
ggplot2 version 0.8.8
...m/hadley/ggplot2 ggplot2 0.8.8 (2010-07-02) ---------------------------------------- This version fixes the following 23 bugs: * coord_equal finally works as expected (thanks to continued prompting from Jean-Olivier Irisson) * coord_equal renamed to coord_fixed to better represent capabilities * coord_polar and coord_polar: new munching system that uses distances (as defined by the coordinate system) to figure out how many pieces each segment should be broken in to (thanks to prompting from Jean-Olivier Irisson) * fix ordering bug in facet_wrap (thanks to bug report by Frank Davenport) * geom_errorh c...
2010 Jul 07
0
ggplot2 version 0.8.8
...m/hadley/ggplot2 ggplot2 0.8.8 (2010-07-02) ---------------------------------------- This version fixes the following 23 bugs: * coord_equal finally works as expected (thanks to continued prompting from Jean-Olivier Irisson) * coord_equal renamed to coord_fixed to better represent capabilities * coord_polar and coord_polar: new munching system that uses distances (as defined by the coordinate system) to figure out how many pieces each segment should be broken in to (thanks to prompting from Jean-Olivier Irisson) * fix ordering bug in facet_wrap (thanks to bug report by Frank Davenport) * geom_errorh c...
2008 Oct 05
0
ggplot2 - version 0.7
...iscrete: all discrete scales have limits and labels argument to better control legends * scale_discrete: character and logical vectors now reliably treated as discrete scales * stat_density2d, geom_density2d: density2d used consistently (instead of density_2d in some places) Improved aesthetics * coord_polar: more tweaks to grid lines to enhance appearance * coord_polar: new expand argument to control whether axes should be expanded outside the range of the data * geom_contour, geom_smooth, geom_quantile: now use blue lines * position_stack, position_dodge: should be more informative if conditions for...
2008 Oct 05
0
ggplot2 - version 0.7
...iscrete: all discrete scales have limits and labels argument to better control legends * scale_discrete: character and logical vectors now reliably treated as discrete scales * stat_density2d, geom_density2d: density2d used consistently (instead of density_2d in some places) Improved aesthetics * coord_polar: more tweaks to grid lines to enhance appearance * coord_polar: new expand argument to control whether axes should be expanded outside the range of the data * geom_contour, geom_smooth, geom_quantile: now use blue lines * position_stack, position_dodge: should be more informative if conditions for...
2008 Apr 04
0
ggplot2 - version 0.6
...r geom_smooth, geom_boxplot, geom_vline, geom_abline, geom_pointrange). These features are new, so there are likely to be a few bugs that I haven't discovered. Please me know if you do find any. Other additions and corrections * coord_equal: should now work correctly in all situations * coord_polar: add start and direction parameters, giving more control over the layout of the polar coords * coord_polar: added my favourite pie chart example * coord_trans now deals with groups appropriately, at the cost of decreased speed * geom_abline, geom_vline, geom_hline: should now behave better in...
2008 Apr 04
0
ggplot2 - version 0.6
...r geom_smooth, geom_boxplot, geom_vline, geom_abline, geom_pointrange). These features are new, so there are likely to be a few bugs that I haven't discovered. Please me know if you do find any. Other additions and corrections * coord_equal: should now work correctly in all situations * coord_polar: add start and direction parameters, giving more control over the layout of the polar coords * coord_polar: added my favourite pie chart example * coord_trans now deals with groups appropriately, at the cost of decreased speed * geom_abline, geom_vline, geom_hline: should now behave better in...
2011 Jul 04
3
Unusual graph- modified wind rose perhaps?
In a OpenOffice.org forum someone was asking if the spreadsheet could graph this http://www.elmundo.es/elmundosalud/documentos/2011/06/leche.html I didn't think it could. :) I don't think I've ever seen exactly this layout. Does anyone know if there is anything in R that does a graph like this or that can be adapted to do it. Unfortunately my Spanish is non-existent so I am not
2016 Apr 22
0
clock24.plot/radial plot
I use ggplot2 for all my plotting needs where you can make plots circular with the coord_polar. Maybe this will help you along: http://rstudio-pubs-static.s3.amazonaws.com/3369_998f8b2d788e4a0384ae565c4280aa47.html On Fri, 22 Apr 2016 at 08:31 Ogbos Okike <giftedlife2014 at gmail.com> wrote: > Dear All, > I am trying to generate a circular/radial plot. The script below has a &g...
2016 Apr 22
2
clock24.plot/radial plot
...n see what is doing and then start trying to see if I can adapt it to solve my problem. Thank you so much for further assistance. Ogbos On 4/22/16, Ulrik Stervbo <ulrik.stervbo at gmail.com> wrote: > I use ggplot2 for all my plotting needs where you can make plots circular > with the coord_polar. Maybe this will help you along: > http://rstudio-pubs-static.s3.amazonaws.com/3369_998f8b2d788e4a0384ae565c4280aa47.html > > On Fri, 22 Apr 2016 at 08:31 Ogbos Okike <giftedlife2014 at gmail.com> wrote: > >> Dear All, >> I am trying to generate a circular/radial plot....