search for: hist2d

Displaying 20 results from an estimated 23 matches for "hist2d".

2000 Mar 26
2
hist2d() function in R?
Dear R users, I am just starting with R (v. 1.0.0) and I use Vehables & Ripley's MASS book for examples. In the intro session, there is an example of a 2D histogram on an 8x8 grid: x <- rnorm(1000) y <- rnorm(1000) contour(hist2d(x,y,,,8,8)) R complains: Error in contour(hist2d(x, y, , , 8, 8)) : couldn't find function "hist2d" I looked for hist2d() in the manual (including the latest development version), but didn't find it. Is there such a function or a suitable substitute? Thank you! Aleksey...
2009 Aug 03
1
hist2d
I'd like to use the hist2d function. What library contains it? Thanks! Simon Firestone Economist, Fair Lending Enforcement Division of Consumer and Community Affairs Federal Reserve Board Washington, DC 20551 simon.b.firestone@frb.gov (202) 785-6056 [[alternative HTML version deleted]]
2010 Mar 26
0
Reverse Y-axis on hist2d diagram
I created a 2d histogram using gplots' hist2d: hist2d(x,y, freq=TRUE, nbins=50, col = c("white",heat.colors(256))) rug(x, side=1) rug(y, side=2) box() Now I would like to reverse the Y-axis, tried to use ylim=rev(range(1:400)) but seems not to work. Any ideas? Ralf
2010 Jul 30
0
Flip axis on hist2d plot
I am plotting a heatmap using the hist2d function: require("gplots") x <- rnorm(2000) y <- rnorm(2000) hist2d(x, y, freq=TRUE, nbins=50, col = c("white",heat.colors(256))) However, I would like to flip the vertical y axis so that the upper left corner serves as the y-origin. How can I do that? Ralf
2010 Jul 09
0
Mirror axis on hist2d plot - how?
The following code produces a heatmap based on normalized data. I would like to mirror x and y axis for this plot. Any idea how to do that? require("gplots") x <- rnorm(500) y <- rnorm(500) hist2d(x, y, freq=TRUE, nbins=50, col = c("white",heat.colors(256))) Best, Ralf
2006 Feb 06
2
panel.levelplot() for 2D histograms
...(x=rnorm(3000),y=rnorm(3000),group=rep(factor(c("A","B","C")), 1000)) # this binscatter-function shows what I want, # I just would like to have it as a panel function binscatter<-function(x,y){ col<-rev(gray.colors(5)) breaks=c(1,5,10,100,500,100000) h2d<-hist2d(x=x,y=y,nbins=10,same.scale=T,show=F) image(h2d$x,h2d$y,h2d$counts,breaks=breaks,col=col,axes=T) } # for one group, this works fine A<-subset(ds,group=="A") binscatter(A$x,A$y) # simple xyplot does too (of course) xyplot(y~x|group,data=ds) # but my lattice-ified version of binscat...
2006 Apr 05
1
Bin by bin histogram comparisons
Hello, I have created two histograms with: hist2d(gps2, nbins=200, col = c("white",heat.colors(16))) Both of them have the same range and the same number of bins. Now I would like to compare them bin by bin and plot the results. Could someone please tell me how to do that. I searched the man pages and the web, but couldn't find anyt...
2011 Nov 16
2
Contour on top of 2d histogram
Hi all, I would like to plot one data set as a 2d histogram and another one as a contour. I can do it separately with the "hist2d" and "contour" functions, but I wonder if there is a way to combine these two plots into a single one (the ranges of the two plots are the same). Any suggestions? Thanks, Anna [[alternative HTML version deleted]]
2013 Mar 08
3
2D filled.contour plot with 1D histograms by axes
...ne, I hope this question is beyond "read the manual". My task is simple, just to plot the following, but the plot in the middle should be a filled.contour plot: http://gallery.r-enthusiasts.com/graph/Scatterplot_with_marginal_histograms_78 Background: I prefer filled.contour rather than hist2d. Because, I could use kernel smooth, so the plot for discrete data won't be too ugly. I also tried image() and then contour(), but the number on contour is not clear and no indication about the color. My problem: in filled.contour function, it uses layout() for filledcontour() plot and rect()...
2002 Oct 01
2
R-gui
I discover last week the R software statistics programm, I have a small questions, When we generate a bivariate normal distribution is it possible to plot the generate distribution. The second one if there is a code to generate a bivariate student distribution. If yes i would ask you gratefully a help. Thank you very much
2007 Jan 12
1
wafer map drawing
...to draw/analyze silicon wafer maps? Here are some examples http://www.java2s.com/Code/Java/Chart/JFreeChartWaferMapChartDemo.htm http://dp.pdf.com/site/products/wafermap/binmap.html I've google'd and searched CRAN with no luck. It seems possible for R, given the hexbin and hist2d graphs I saw at the Graph gallery. Thanks, Sam [[alternative HTML version deleted]]
2008 Jul 11
2
Problems with Package Installation.
...html latex example boxplot.n text html latex example col2hex text html latex example colorpanel text html latex example heatmap.2 text html latex example hist2d text html latex example lowess text html latex example ooplot text html latex example overplot text html latex example plot.lm2...
2002 Sep 23
3
New version of gregmisc package
...timable linear functions of the fitted coefficients (including contrasts) of regression objects factorial Compute factorial function glh.test Test a General Linear Hypothesis for a Regression Model hist2d Compute and Plot a 2-Dimensional Histogram interleave Interleave Rows of Data Frames or Matrices lowess Scatter Plot Smoothing nobs Compute the Number of Non-missing Observations plotCI Plot Error Bars plotmeans...
2002 Sep 23
3
New version of gregmisc package
...timable linear functions of the fitted coefficients (including contrasts) of regression objects factorial Compute factorial function glh.test Test a General Linear Hypothesis for a Regression Model hist2d Compute and Plot a 2-Dimensional Histogram interleave Interleave Rows of Data Frames or Matrices lowess Scatter Plot Smoothing nobs Compute the Number of Non-missing Observations plotCI Plot Error Bars plotmeans...
2002 Oct 31
1
Re: gregmisc version 0.7.3 now available
...ession objects factorial Compute factorial function fast.prcomp Efficient computation of principal components and singular value decompositions. glh.test Test a General Linear Hypothesis for a Regression Model hist2d Compute and Plot a 2-Dimensional Histogram interleave Interleave Rows of Data Frames or Matrices lowess Scatter Plot Smoothing make.contrasts Construct a User-Specified Contrast Matrix nobs Compute the Number of Non-missin...
2007 Nov 02
0
gplots 2.5.0
Announcing gplots 2.5.0 --------------------------------- gplots provides additional plotting functions, including several enhanced versions of base R functions. Provided functions include: balloonplot, bandplot, barplot2, boxplot.n, colorpanel, heatmap.2, hist2d, lowess, ooplot, overplot, plot.lm2, plotCI, plotmeans, qqnorm.aov, residplot, rich.color, sinkplot, smartlegend, space, textplot, wapply Changes in 2.5.0 ----------------------- New Features: - textplot() now converts tab characters to spaces before processing to avoid problems wi...
2002 Jun 18
0
2d histogram interpolation
Hi ! I want to find the surface the interpolates a 2D histogram, that I have generated with hist2d. I don't want to make a fit, but simply an interpolation. Which function have I to use to do this ? Thanks in advance. Paola. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send &quot...
2006 Nov 07
0
evaluation of 2 matrices: categorical comparison
...wo data by the following methods: ***** pretending the data is continuous approaches (flawed i am sure...) 1. computing a difference map by computing the absolute difference (cell-by-cell) between the two outputs 2. simple linear regression / scatter plot of the two outputs 3. 2D histogram via. hist2d() in the gplots package *** categorical comparisons 4. conversion of each matrix to a vector of factors and: 5. frequency tabulation for each level 6. mosiacplot 7. computation of Cohen's Kappa (using the cohen.kappa function from the 'concord' package) : # a and b are vectors wi...
2007 Nov 02
0
gplots 2.5.0
Announcing gplots 2.5.0 --------------------------------- gplots provides additional plotting functions, including several enhanced versions of base R functions. Provided functions include: balloonplot, bandplot, barplot2, boxplot.n, colorpanel, heatmap.2, hist2d, lowess, ooplot, overplot, plot.lm2, plotCI, plotmeans, qqnorm.aov, residplot, rich.color, sinkplot, smartlegend, space, textplot, wapply Changes in 2.5.0 ----------------------- New Features: - textplot() now converts tab characters to spaces before processing to avoid problems wi...
2008 Sep 17
0
fMultivar functions not loading under R-2.7
...norm" [7] "dmvst" "dnorm2d" ".dnorm2d" [10] "dt2d" ".First.lib" ".gfunc2d" [13] "grid2d" "gridData" "hexBinning" [16] "hist2d" "integrate2d" "mvFit" [19] ".mvsnormFit" ".mvsnormPlot" ".mvsnorm.plot.1" [22] ".mvsnorm.plot.1A" ".mvsnorm.plot.1B" ".mvsnorm.plot.2" [25] ".mvsnorm.plot.3&quo...