search for: stat_bin

Displaying 20 results from an estimated 22 matches for "stat_bin".

Did you mean: start_bit
2009 Oct 23
1
ggplot2: stat_bin ..count.. with geom_text when NA is present
...arnings from stat_summary and geom_point about removing rows; these arise from an earlier part of the function and the points and error bars all plot. However, the count annotation does not appear on the plot when there are NA in res. Looking at the ggplot2 web site, there is a drop parameter for stat_bin. I inserted drop = TRUE several places in the snippet above and the function did not complain but still did not plot the counts. I looked at the function bin{ggplot2} which apparently does the work. There are some programming tricks there I'm not really familiar with, but generally it looks l...
2008 Apr 04
0
ggplot2 - version 0.6
...le_size: changed 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...
2008 Apr 04
0
ggplot2 - version 0.6
...le_size: changed 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...
2010 Jul 29
2
ggplot2 histograms... a subtle error found
...a peculiar and particular bug that I stumbled across with ggplot2. I cannot seem to replicate it with anything other than my specific data set. Here is the problem: - when I try to plot a histogram, allowing for ggplot2 to decide the binwidths itself, I get the following error: - stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this. - Error: position_stack requires constant width My code is simply: ggplot(data=myDataSet, aes(x=myVarOI)) + geom_histogram() or qplot(myDataSet$myVarOI) If I go ahead and set the binwidth to some va...
2009 Dec 10
1
barplot and cumulative curve using ggplot2 layers
...arplot from left side and cumulative curve from right side in one graph itself using layers in ggplot2. I sorted the recruits 1st in decreasing order and then used mydata <- data.frame(jobno, recruits) ggplot(mydata, aes(x = jobno, y = recruits)) + geom_bar() but I am getting an error "stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this. Error in pmin(y, 0) : object "y" not found" Can someone guide me regarding this? How to get barplot from left side and cumulative curve from right side in one graph itself. Thanks in advance Regards Sunita...
2010 Jul 07
0
ggplot2 version 0.8.8
...rt) * scale_color: add missing US spellings * stat: panels with no non-missing values trigged errors with some statistics. (reported by Giovanni Dall'Olio) * stat: statistics now also respect layer parameter inherit.aes (thanks to bug report by Lorenzo Isella and investigation by Brian Diggs) * stat_bin no longer drops 0-count bins by default * stat_bin: fix small bug when dealing with single bin with NA position (reported by John Rauser) * stat_binhex: uses range of data from scales when computing binwidth so hexes are the same size in all facets (thanks to Nicholas Lewin-Koh for the bug report)...
2010 Jul 07
0
ggplot2 version 0.8.8
...rt) * scale_color: add missing US spellings * stat: panels with no non-missing values trigged errors with some statistics. (reported by Giovanni Dall'Olio) * stat: statistics now also respect layer parameter inherit.aes (thanks to bug report by Lorenzo Isella and investigation by Brian Diggs) * stat_bin no longer drops 0-count bins by default * stat_bin: fix small bug when dealing with single bin with NA position (reported by John Rauser) * stat_binhex: uses range of data from scales when computing binwidth so hexes are the same size in all facets (thanks to Nicholas Lewin-Koh for the bug report)...
2008 Jul 08
4
Histogram with colors according to factor
Given a data frame with a continuous variable and a factor. I would like to generate a histogram of the continuous variable, where each bar is filled with different colors according to the percentage of factor values falling into this region of the continuous variable. I looked into packages like 'lattice' and 'ggplot2'. Searching R-help revealed that 'histogram' is
2008 Nov 21
0
ggplot2 - version 0.8
...d and easy to understand. See http://had.co.nz/ggplot2/book. I love to hear your feedback about the book, but at this point please don't bother reporting minor typos, I would much rather hear about what you want to do, but can't figure out from the book. Other new features: * geom_bin2d/stat_bin2d & geom_hex/stat_binhex: for 2d square and hexagon binning, particularly useful for alleviating overplotting in scatterplots * geom_freqpoly: draws frequency polygons (= stat_bin + geom_line) * scale_position: both discrete and continuous gain a new formatter argument to control the default fo...
2008 Nov 21
0
ggplot2 - version 0.8
...d and easy to understand. See http://had.co.nz/ggplot2/book. I love to hear your feedback about the book, but at this point please don't bother reporting minor typos, I would much rather hear about what you want to do, but can't figure out from the book. Other new features: * geom_bin2d/stat_bin2d & geom_hex/stat_binhex: for 2d square and hexagon binning, particularly useful for alleviating overplotting in scatterplots * geom_freqpoly: draws frequency polygons (= stat_bin + geom_line) * scale_position: both discrete and continuous gain a new formatter argument to control the default fo...
2009 Nov 14
2
formatting dates in axis labels (ggplot2)
..._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 adjust this. OK, I tried formatting Date first, in different ways. Each time, I get a graphical result, but I don't know how to use format() for dates to make the result ordered as normal dates, rather than as character strings....
2007 Oct 21
0
ggplot2 - version 0.5.6
...give an informative error message when required aesthetics are missing * better error messages if data not a data frame, or mapping not created by aes or aes_string * better errors for qplot when variables missing or data invalid * better error if somehow you are missing necessary scales * stat_bin informs you of the default choice of binwidth * stat_smooth gives helpful error messages for common problems * printing a geom now displays the data set that it uses (if not the default) Other improvements: * colour and fill legends now surround by background plot colour * can now draw arr...
2010 Feb 19
0
ggplot2: version 0.8.6
...and scale_date_time now take expand argument * scales were not getting automatically added in many situations (Fixes #69) * scale_manual was not returning labels in the correct format and so legends were not getting merged correctly * stat_contour: fix error if x or y coordinates were negative * stat_bin: now copes with bars of zero height (Fixes #72) * stat_qq: always use sorted data (rather than interpolated quantiles) on sample axis. This makes it behave more like qqnorm * stat_quantile: correctly group results * xlim now works with datetimes * all plyr functions prefixed with their namespace...
2010 Mar 13
0
ggplot2: version 0.8.7
...en range is 0 * geom_point legend takes more care to ensure that fill colours will be shown * legend: fixed scale merging bug when labels were set manually * scale_area: gains a legend argument like all other scales * scale_colour_brewer: gains na.colour argument to set colour of missing values * stat_bin2d: fix typo in breaks calculation * stat_bin: deals with floating point rounding issues using the same algorithm as base::hist * stat_density2d: fixed bug when contour = FALSE (Thanks to Takahashi Kohske) -- Assistant Professor / Dobelman Family Junior Chair Department of Statistics / Rice Uni...
2007 Oct 21
0
ggplot2 - version 0.5.6
...give an informative error message when required aesthetics are missing * better error messages if data not a data frame, or mapping not created by aes or aes_string * better errors for qplot when variables missing or data invalid * better error if somehow you are missing necessary scales * stat_bin informs you of the default choice of binwidth * stat_smooth gives helpful error messages for common problems * printing a geom now displays the data set that it uses (if not the default) Other improvements: * colour and fill legends now surround by background plot colour * can now draw arr...
2010 Feb 19
0
ggplot2: version 0.8.6
...and scale_date_time now take expand argument * scales were not getting automatically added in many situations (Fixes #69) * scale_manual was not returning labels in the correct format and so legends were not getting merged correctly * stat_contour: fix error if x or y coordinates were negative * stat_bin: now copes with bars of zero height (Fixes #72) * stat_qq: always use sorted data (rather than interpolated quantiles) on sample axis. This makes it behave more like qqnorm * stat_quantile: correctly group results * xlim now works with datetimes * all plyr functions prefixed with their namespace...
2010 Mar 13
0
ggplot2: version 0.8.7
...en range is 0 * geom_point legend takes more care to ensure that fill colours will be shown * legend: fixed scale merging bug when labels were set manually * scale_area: gains a legend argument like all other scales * scale_colour_brewer: gains na.colour argument to set colour of missing values * stat_bin2d: fix typo in breaks calculation * stat_bin: deals with floating point rounding issues using the same algorithm as base::hist * stat_density2d: fixed bug when contour = FALSE (Thanks to Takahashi Kohske) -- Assistant Professor / Dobelman Family Junior Chair Department of Statistics / Rice Uni...
2012 Mar 02
0
ggplot2 0.9.0
...cial case, for when you want to draw the same raster in each panel. * `geom_violin`: an implementation of violin plots, which are a way of visualizing kernel density estimates. (Thanks to Winston Chang) * `geom_dotplot`: dot plots, as described in Wilkinson (1999). To bin the data, it uses `stat_bindot` to bin the data, which has two methods: histodot and dot-density. Histodot binning uses fixed-width bins just like `stat_bin`, while dot-density binning uses variable-width bins. A new grob, `grob_dotstack` is used to render the dots. (Thanks to Winston Chang) * New fortify methods have...
2012 Mar 02
0
ggplot2 0.9.0
...cial case, for when you want to draw the same raster in each panel. * `geom_violin`: an implementation of violin plots, which are a way of visualizing kernel density estimates. (Thanks to Winston Chang) * `geom_dotplot`: dot plots, as described in Wilkinson (1999). To bin the data, it uses `stat_bindot` to bin the data, which has two methods: histodot and dot-density. Histodot binning uses fixed-width bins just like `stat_bin`, while dot-density binning uses variable-width bins. A new grob, `grob_dotstack` is used to render the dots. (Thanks to Winston Chang) * New fortify methods have...
2008 Jan 24
2
Barplot w/ single stacked bar
Hi All, I can get the barplot function to do many types of plots, stacked or otherwise. However, I cannot get it to do a *single* stacked bar. I've searched several books & listserv archives to no avail. I suspect I'm missing the obvious from the help file! I can reach my goal in ggplot2, although the relative heights of the bar's pieces don't seem quite right (it does