Displaying 11 results from an estimated 11 matches for "geom_hex".
2011 Jul 28
1
ggplot2 help/suggestions needed
...o,
I have written a version of the Kohenen Self Organizing Map (in R) and wish
to use ggplot2 for the visualization. My results are RGB values in a matrix
[x,y,1:3] where x and y comprise the first two dimensions and the third
dimension is the RGB vector.
I am not sure whether to use geom_tile or geom_hex as there really is no
binning at the finest granularity. For testing, the matrix is 100, 100, 3 in
size. What approach would you suggest?
TIA,
DrX
2020 Apr 29
2
problem with `viridis` on Ubuntu 20.04
I've hit a bug on Ubuntu 20.04. The issue occurred both with the R
version that shipped with Ubuntu last week, and it is occurring now with
the CRAN packages from one of the mirros (deb
http://cran.mirror.garr.it/mirrors/CRAN/bin/linux/ubuntu/
focal-cran40/). The issue occurs whether I use the deb package for
viridis in the Ubuntu repos, or I install it with `install.packages()` in R.
2010 Oct 18
2
Question about Density Plot
Hi
I've attached an example about something I want to do in R. This example
was done in a Fortran application called ASGL. Here's an example in
matplotlib
http://matplotlib.sourceforge.net/examples/pylab_examples/hexbin_demo.html
Basically, it's like a scatter plot, but have several additional things.
One thing are the grids inside the graph, and the other is a density bar
used
2010 Dec 24
0
ggplot2 0.8.9 - Merry Christmas version
...if + doesn't know how to deal with an object
type
* coord_cartesian and coord_flip: now can wisely zoom when wise = TRUE
* coord_polar: fix point division bugs
* facet_grid: now labels in facet_grid are correctly aligned when the number
of factors is more then one (fixes #87 and #65)
* geom_hex: now correctly applies alpha to fill colour not outline colour
(thanks to bug report from Ian Fellows)
* geom_polygon: specifying linetype now works (thanks to fix from Kohske
Takahashi)
* hcl: can now set c and l, and preserves names (thanks to suggestion by
Richard Cotton)
* mean_se: a n...
2010 Dec 24
0
ggplot2 0.8.9 - Merry Christmas version
...if + doesn't know how to deal with an object
type
* coord_cartesian and coord_flip: now can wisely zoom when wise = TRUE
* coord_polar: fix point division bugs
* facet_grid: now labels in facet_grid are correctly aligned when the number
of factors is more then one (fixes #87 and #65)
* geom_hex: now correctly applies alpha to fill colour not outline colour
(thanks to bug report from Ian Fellows)
* geom_polygon: specifying linetype now works (thanks to fix from Kohske
Takahashi)
* hcl: can now set c and l, and preserves names (thanks to suggestion by
Richard Cotton)
* mean_se: a n...
2010 Nov 21
1
"negative alpha" or custom gradient colors of data dots in scatterplot ?
I know that by setting alpha to for example col = rgb(0, 0, 0, 0.1) it is
possible to see how many overlapping is in the plot. But disadvantage of it
is that single points are barely visible on the background. So I wonder if
there is possible to make setting that single points would be almost black,
but with more and more data on the same spot it would get more and more
whiteish. Or maybe it is
2020 Apr 29
0
problem with `viridis` on Ubuntu 20.04
...R-help (December 2009)
R> setwd('/home/edd/')
R>
R> library(viridisLite)
R> example(viridis)
viridsR> library(ggplot2)
viridsR> library(hexbin)
viridsR> dat <- data.frame(x = rnorm(10000), y = rnorm(10000))
viridsR> ggplot(dat, aes(x = x, y = y)) +
virids+ geom_hex() + coord_fixed() +
virids+ scale_fill_gradientn(colours = viridis(256, option = "D"))
Hit <Return> to see next plot:
viridsR> # using code from RColorBrewer to demo the palette
viridsR> n = 200
viridsR> image(
virids+ 1:n, 1, as.matrix(1:n),
virids+ col = viridis(...
2008 Nov 21
0
ggplot2 - version 0.8
...erstand. 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 formatting of the a...
2008 Nov 21
0
ggplot2 - version 0.8
...erstand. 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 formatting of the a...
2020 Apr 30
2
problem with `viridis` on Ubuntu 20.04
...gt; R>
> R> library(viridisLite)
> R> example(viridis)
>
> viridsR> library(ggplot2)
>
> viridsR> library(hexbin)
>
> viridsR> dat <- data.frame(x = rnorm(10000), y = rnorm(10000))
>
> viridsR> ggplot(dat, aes(x = x, y = y)) +
> virids+ geom_hex() + coord_fixed() +
> virids+ scale_fill_gradientn(colours = viridis(256, option = "D"))
> Hit <Return> to see next plot:
>
> viridsR> # using code from RColorBrewer to demo the palette
> viridsR> n = 200
>
> viridsR> image(
> virids+ 1:n, 1, a...
2010 Nov 24
0
4. Rexcel (Luis Felipe Parra)-how to run a code from excel
...set=ISO-8859-1
Hi,
I suggest taking a look at the plotting functions in the ggplot2
package. For example:
x <- rnorm(10000)
y <- x+rnorm(10000)
dat <- data.frame(x,y)
library(ggplot2)
p <- ggplot(dat, aes(x=x, y=y))
p + geom_point() # too much overplotting: compare to
dev.new()
p + geom_hex(binwidth=c(.1,.1))
Best,
Ista
On Sun, Nov 21, 2010 at 9:13 AM, madr <madrazel at interia.pl> wrote:
>
> I know that by setting alpha to for example col = rgb(0, 0, 0, 0.1) it is
> possible to see how many overlapping is in the plot. But disadvantage of
it
> is that single points...