Displaying 4 results from an estimated 4 matches for "hexviewport".
2010 Jul 23
0
overriding axis limits in hexbin plot?
...ge.
Here's what I've figured out so far:
* when you do the hexagonal binning in the first place, you can
specify the x and y ranges (xbnds, ybnds). Fine ... but ...
* the plot method for 'hexbin' objects (which doesn't have 'xlim' or
'ylim' arguments) calls hexViewport as
hexViewport(x, offset = unit(legend, "inches"))
* in the absence of explicit 'xbnds'/'ybnds' arguments, hexViewport does
xyb <- smartBnds(x)
hvp at xscale <- xs <- if (is.null(xbnds))
xyb$xr
else xbnds
hvp at yscale <- ys <-...
2004 Nov 09
1
gplot.hexbin - how to set figure margin.
...D hist - because it looks really _cool_.
My problem is related to drawing a pdf hexbin graphic in series of other graphics.
All other figures have a par(mar=c(3.2,3.2,1,1)). So the gplot.hexbin figure in this series looks a little alienated?
Was trying a to specify the _mar_ using par, viewport, hexViewport etc. a little.
My question. How to set the margins in the sample code below.
x <- rnorm(10000)
y <- rnorm(10000)
bin <- hexbin(x,y)
## Plot : Note that 'gplot.hexbin' is the S4 plot method for hexbin !
## ---- ------------ --------------
plot(bin)
/E
D...
2012 Oct 18
3
svyplot and svysmooth with hexbin
Hi all-
So sorry to bother you all with something pretty basic.
I am trying to add the lines method output from svysmooth to a svyplot with style="grayhex". However, the line either appears in the wrong place or if I am running in R Studio it causes the system to crash.
I know this is something to do with Lattice graphics, but for the life of me I can not figure out how. Dr. Lumley
2005 Mar 31
1
hexbin and grid - input data values as coordinates
Dear all,
I am trying to use hexbin and read the very interesting article on grid
( http://www.ci.tuwien.ac.at/Conferences/useR-2004/Keynotes/Murrell.pdf ) and am hoping for some advice from more experienced users of hexbin.
I am trying to visualise a data and fit a straight line trough it. For
example, here is how I would do it in the usual way
# simulate data
x <- rnorm(1000)
y <-