Marck Vaisman
2011-04-13 20:46:43 UTC
Hello everyone,
I've been using the hexbin package and the plot(hexobject) call to do some
hexbin plots but I can't customize it enough to suit my needs so I want to
use ggplot. When you create a hexbin with the hexbin() function you get an
object where you can see the coordinates of each bin and its associated
count.
Is there any way to see within a ggplot object created with geom_hex() how
the data was binned and counted - i.e. what are the attributes of each
hexagon created, and its' respective count? Is there a way to I see the code
of the hex binning piece?
I want to do some customization with the breaks/labels in my hexagon fill
gradients, but I want to know what the summary of the counts and make it
dynamic for several charts. My data has a very high number of bins with a
count of 1, and then it's all over the place. I want to use a gradient fill
and make the bins with count = 1 a light color and then successively darker
as the counts increase, but I'd like to know the distribution of the counts
to do that.
Thanks,
Marck
I've been using the hexbin package and the plot(hexobject) call to do some
hexbin plots but I can't customize it enough to suit my needs so I want to
use ggplot. When you create a hexbin with the hexbin() function you get an
object where you can see the coordinates of each bin and its associated
count.
Is there any way to see within a ggplot object created with geom_hex() how
the data was binned and counted - i.e. what are the attributes of each
hexagon created, and its' respective count? Is there a way to I see the code
of the hex binning piece?
I want to do some customization with the breaks/labels in my hexagon fill
gradients, but I want to know what the summary of the counts and make it
dynamic for several charts. My data has a very high number of bins with a
count of 1, and then it's all over the place. I want to use a gradient fill
and make the bins with count = 1 a light color and then successively darker
as the counts increase, but I'd like to know the distribution of the counts
to do that.
Thanks,
Marck
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: http://gist.github.com/270442
To post: email ggplot2-/***@public.gmane.org
To unsubscribe: email ggplot2+unsubscribe-/***@public.gmane.org
More options: http://groups.google.com/group/ggplot2
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: http://gist.github.com/270442
To post: email ggplot2-/***@public.gmane.org
To unsubscribe: email ggplot2+unsubscribe-/***@public.gmane.org
More options: http://groups.google.com/group/ggplot2