similar to: Kernel Density Estimator for 2D Binned Data

Displaying 20 results from an estimated 900 matches similar to: "Kernel Density Estimator for 2D Binned Data"

2016 Jul 12
3
Forking and adapting an R package
Hello. I'm trying to adapt the package ?hexbin? to suit my needs. This is the first time I do this. I've read a bit through Hadley's ?R packages?, but now I'm pretty lost (from a workflow point of view). I am using RStudio and Hadley's devtools. So I forked the repo I want to adapt: https://github.com/grssnbchr/hexbin and cloned it using RStudio (I created a new project).
2016 Jul 12
3
Forking and adapting an R package
Hello. I'm trying to adapt the package ?hexbin? to suit my needs. This is the first time I do this. I've read a bit through Hadley's ?R packages?, but now I'm pretty lost (from a workflow point of view). I am using RStudio and Hadley's devtools. So I forked the repo I want to adapt: https://github.com/grssnbchr/hexbin and cloned it using RStudio (I created a new project).
2016 Jul 12
2
[R] Forking and adapting an R package
On 12/07/2016 7:28 AM, timo at timogrossenbacher.ch wrote: > Hello. > > I'm trying to adapt the package ?hexbin? to suit my needs. This is the first > time I do this. I've read a bit through Hadley's ?R packages?, but now I'm > pretty lost (from a workflow point of view). I am using RStudio and Hadley's > devtools. > > So I forked the repo I want to
2006 Feb 06
2
panel.levelplot() for 2D histograms
Dear R-wizards, I'm trying to plot "binned scatterplots", or 2d histograms, if you wish, for a number of groups by using the lattice functionality it works fine for one group at a time, and probably I could find a work-around, but I prefer to do it the elegant way here's an example of what I want, what I tried and where it goes wrong: require(gregmisc) require(lattice) #toy
2012 Mar 25
1
multiple hexbin plots with varying greatest densities
Greetings: I have multiple hexbin plots with varying greatest densities. Right now, the data on each plot varies from 1-256 levels of density. The problem with that is that in Plot A the data are more scattered across a 2 x 2 grid whereas in Plot B the data are more concentrated in fewer cells. Hence, Plot A has a few very dense grid cells and plot B has nothing as dense as plot A. (In Plot A
2013 Sep 18
1
Design for classes with database connection
Dear R-Devels, I am designing right now a package intended to simplify the handling of market microstructure data (tick data, order data, etc). As these data is most times pretty huge and needs to be reordered quite often (e.g. if several security data is batched together or if only a certain time range should be considered) - the package needs to handle this. Before I start, I would like to
2008 Jul 29
1
tensor product of equi-spaced B-splines in the unit square
Dear all, I need to compute tensor product of B-spline defined over equi-spaced break-points. I wrote my own program (it works in a 2-dimensional setting) library(splines) # set the break-points Knots = seq(-1,1,length=10) # number of splines M = (length(Knots)-4)^2 # short cut to splineDesign function bspline = function(x) splineDesign(Knots,x,outer.ok = T) # bivariate tensor product of
2013 Aug 17
1
[LLVMdev] [brlcad-devel] Clang vs. gcc for building BRL-CAD
On Sat, Aug 17, 2013 at 7:08 AM, Tom Browder <tom.browder at gmail.com> wrote: > On Sat, Aug 17, 2013 at 6:15 AM, Tom Browder <tom.browder at gmail.com>wrote: > >> On Fri, Aug 16, 2013 at 2:58 PM, Tom Browder <tom.browder at gmail.com>wrote: >> >>> On Fri, Aug 16, 2013 at 2:55 PM, Tom Browder <tom.browder at gmail.com>wrote: >>>
2004 Nov 09
1
gplot.hexbin - how to set figure margin.
Hi, Would like to use to the hexbin package to plot a 2D 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
2012 Mar 22
3
How to export hexbin tables?
Hi all! I'm trying to save an output of the HEXBIN process... is so much data (105k), and I need to export to an ASCII file. I tried to use: write.table() ----> Error in as.data.frame.default(x[[i]], optional = TRUE) : cannot coerce class 'structure("hexbin", package = "hexbin")' into a data.frame cat() ---> Error in cat(list(...), file, sep, fill,
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 <-
2009 Jun 28
1
help with hexbin package
Dear All i am trying to figure out the use of hexbin function in the hexbin package --can any one send me a working example of the same The > example(hexbin) ---option is of not much use Thanks Kind regards Ravi [[alternative HTML version deleted]]
2007 Oct 19
1
Using grid graphics (hexbin) in pairs() plot problem
Hi, I am trying to create a plot with pairs() using a gplot.hexbin() for each pair. For pairs I can provide a custom upperPanel function: pairs(iris[1:4], panel=mypanel) and mypanel() calls plot.hexbin(): library(hexbin) # Bioconductor mypanel <- function(x, ...){ hb <- hexbin(x) plot(hb) } The problem is that gplot.hexbin() is based on the
2007 Sep 27
1
problem loading hexbin associated package colorspace
I have lots of data that I need to display, and I think hexbin would be good for it. However, I cannot load one of the requried packages associated with the hexbin package: > library(hexbin) Loading required package: colorspace Error in loadNamespace(package, c(which.lib.loc, lib.loc), keep.source = keep.source) : in 'colorspace' methods for export not found: [, coords, plot
2012 Mar 13
1
sunflower plot, making vectors?
I'm having a bit of trouble finding and understanding the correct function to make numeric vectors to feed the sunflowerplot function. I have 33k points to show and I want to do better than the standard scatter plot. I gather that I need two vectors (x and y) of the same count containing the "center" value of each bin. FYI - I have two pieces of data: 1 - x axis - time in days of
2006 Dec 04
4
beginning my R-learning
Hello, I'm just beginning to learn R. What books/online learning modules with datasets would you suggest? Thank you! Best wishes, Michael ____________________________________ Michael McCulloch Pine Street Clinic Pine Street Foundation 124 Pine Street, San Anselmo, CA 94960-2674 tel 415.407.1357 fax 415.485.1065 email: mm at pinest.org web: www.pinest.org
2011 Sep 09
2
How to translate the 2D-density matrix (the output of bkde2D function) into matrix of datapoints' amounts?
It is known that function bkde2D (package "KernSmooth") returns a matrix of density estimates over the mesh induced by x1 and x2. In Details it is written that "... heights of the kernel, scaled by the bandwidths, at each datapoint are summed. This sum, after a normalization, is the corresponding fhat value in the output". There are several questions: 1) How to calculate
2012 Mar 18
1
problem saving gplot.hexbin using file save as pdf - "Error: invalid graphics state
I can save to png, TIFF and jpg but get an error "Error: invalid graphics state" when trying to save as pdf and I have to restart R. This happens when I add mtext lines. There are a few other questions e.g. I want to move the mtext on side 1 to the left, but that is the main issue for now. I'm not using the ylab inside gplot.hexbin because it writes over the numbers on the axis.
2012 Dec 16
3
xlim/ylim problem
Hi everybody, just arrived at R and immediately I got a problem. Here's my script: setwd("C:/Users/Tom/Eigene Tools/Programming/R/Data") blast_hits<-read.table("blastHit_covLenght.txt", header=T) blast_hits <- as.matrix(blast_hits) numerical1<-data.matrix(blast_hits, rownames.force = NA)
2003 Jan 03
4
number plot symbol in scatterplot?
If I make a scatterplot and several (e.g. 5) points lie on top of each other at a given x,y location I would like the plot symbol to be the number of superimposed points (e.g. "5"). Could someone please tell me how to do this in R? Thanks! Bill Simpson