search for: geom_density2d

Displaying 14 results from an estimated 14 matches for "geom_density2d".

2012 Jan 17
1
pretty(range(data$z),10) Error
Hello, R-List, I'm getting error messages when adding geom_density2d() [package ggplot2]: ============================================================================ Fehler in pretty(range(data$z), 10) :   NA/NaN/Inf in externem Funktionsaufruf (arg 1) Zusätzlich: Warnmeldungen: 1: Removed 10000 rows containing missing values (stat_contour). 2: In min(x) : kein n...
2017 Oct 08
2
how to overlay 2d pdf atop scatter plot using ggplot2
...e who have seen it there also but I thought that this list of experts may have someone who knows the answer. I have the following example code: require(mvtnorm) require(ggplot2) set.seed(1234) xx <- data.frame(rmvt(100, df = c(13, 13))) ggplot(data = xx, aes(x = X1, y= X2)) + geom_point() + geom_density2d() It yields a scatterplot of X2 against X1 and a KDE contour plot of the density (as it should). My question is: is it possible to change the contour plot to display the contours of a two-dimensional density function (say dmvt), using ggplot2? The remaining figures in my document are in ggplo...
2017 Oct 09
2
example of geom_contour() with function argument
...the answer. > > > > I have the following example code: > > > > > > > > require(mvtnorm) > > require(ggplot2) > > set.seed(1234) > > xx <- data.frame(rmvt(100, df = c(13, 13))) > > ggplot(data = xx, aes(x = X1, y= X2)) + geom_point() + geom_density2d() > > > > > > > > It yields a scatterplot of X2 against X1 and a KDE contour plot of the > > density (as it should). > > > > My question is: is it possible to change the contour plot to display > > the contours > > > > of a two-dimensional...
2017 Oct 08
0
how to overlay 2d pdf atop scatter plot using ggplot2
...gt; list of experts may have someone who knows the answer. > > I have the following example code: > > > > require(mvtnorm) > require(ggplot2) > set.seed(1234) > xx <- data.frame(rmvt(100, df = c(13, 13))) > ggplot(data = xx, aes(x = X1, y= X2)) + geom_point() + geom_density2d() > > > > It yields a scatterplot of X2 against X1 and a KDE contour plot of the > density (as it should). > > My question is: is it possible to change the contour plot to display > the contours > > of a two-dimensional density function (say dmvt), using ggplot2?...
2017 Oct 09
0
example of geom_contour() with function argument
...ollowing example code: > > > > > > > > > > > > require(mvtnorm) > > > require(ggplot2) > > > set.seed(1234) > > > xx <- data.frame(rmvt(100, df = c(13, 13))) > > > ggplot(data = xx, aes(x = X1, y= X2)) + geom_point() + > geom_density2d() > > > > > > > > > > > > It yields a scatterplot of X2 against X1 and a KDE contour plot of the > > > density (as it should). > > > > > > My question is: is it possible to change the contour plot to display > > > the contours...
2017 Oct 09
2
example of geom_contour() with function argument
...> >> > > >> > > >> > > require(mvtnorm) >> > > require(ggplot2) >> > > set.seed(1234) >> > > xx <- data.frame(rmvt(100, df = c(13, 13))) >> > > ggplot(data = xx, aes(x = X1, y= X2)) + geom_point() + >> geom_density2d() >> > > >> > > >> > > >> > > It yields a scatterplot of X2 against X1 and a KDE contour plot of the >> > > density (as it should). >> > > >> > > My question is: is it possible to change the contour plot to display...
2011 Feb 24
2
how to plot equalprobable error ellipse?
hi,R users, Now I have some scatter figures, is there some method can plot equalprobable error ellipse ? -- TANG Jie Email: totangjie@gmail.com Tel: 0086-2154896104 Shanghai Typhoon Institute,China [[alternative HTML version deleted]]
2017 Oct 09
0
example of geom_contour() with function argument
...t;> >>>>> >>>>> require(mvtnorm) >>>>> require(ggplot2) >>>>> set.seed(1234) >>>>> xx <- data.frame(rmvt(100, df = c(13, 13))) >>>>> ggplot(data = xx, aes(x = X1, y= X2)) + geom_point() + >>> geom_density2d() >>>>> >>>>> >>>>> >>>>> It yields a scatterplot of X2 against X1 and a KDE contour plot of the >>>>> density (as it should). >>>>> >>>>> My question is: is it possible to change the contou...
2017 Oct 09
3
example of geom_contour() with function argument
...> >>>>> require(mvtnorm) > >>>>> require(ggplot2) > >>>>> set.seed(1234) > >>>>> xx <- data.frame(rmvt(100, df = c(13, 13))) > >>>>> ggplot(data = xx, aes(x = X1, y= X2)) + geom_point() + > >>> geom_density2d() > >>>>> > >>>>> > >>>>> > >>>>> It yields a scatterplot of X2 against X1 and a KDE contour plot of > the > >>>>> density (as it should). > >>>>> > >>>>> My question is:...
2008 Oct 05
0
ggplot2 - version 0.7
...w limits argument to set axis limits * scale_discrete: all discrete scales accept breaks argument * scale_discrete: all discrete scales have limits and labels argument to better control legends * scale_discrete: character and logical vectors now reliably treated as discrete scales * stat_density2d, geom_density2d: density2d used consistently (instead of density_2d in some places) Improved aesthetics * coord_polar: more tweaks to grid lines to enhance appearance * coord_polar: new expand argument to control whether axes should be expanded outside the range of the data * geom_contour, geom_smooth, geom_quan...
2008 Oct 05
0
ggplot2 - version 0.7
...w limits argument to set axis limits * scale_discrete: all discrete scales accept breaks argument * scale_discrete: all discrete scales have limits and labels argument to better control legends * scale_discrete: character and logical vectors now reliably treated as discrete scales * stat_density2d, geom_density2d: density2d used consistently (instead of density_2d in some places) Improved aesthetics * coord_polar: more tweaks to grid lines to enhance appearance * coord_polar: new expand argument to control whether axes should be expanded outside the range of the data * geom_contour, geom_smooth, geom_quan...
2017 Oct 09
0
example of geom_contour() with function argument
...;> require(mvtnorm) >> >>>>> require(ggplot2) >> >>>>> set.seed(1234) >> >>>>> xx <- data.frame(rmvt(100, df = c(13, 13))) >> >>>>> ggplot(data = xx, aes(x = X1, y= X2)) + geom_point() + >> >>> geom_density2d() >> >>>>> >> >>>>> >> >>>>> >> >>>>> It yields a scatterplot of X2 against X1 and a KDE contour plot of >> the >> >>>>> density (as it should). >> >>>>> >> >...
2008 Nov 21
0
ggplot2 - version 0.8
...s in other geoms (point, line, etc) * geom_line, geom_path, geom_segment: lines have squared ends * geom_point, geom_pointrange and geom_boxplot: now use shape = 16 instead of 19. This shape does not have a border from R 2.8 on, and so will look better when displayed transparently. * geom_contour, geom_density2d, geom_quantile and geom_smooth use a bright blue colour for lines, to make them stand out when used with black points * scale_gradient: tweaked default colours to make more aesthetically pleasing * theme: new theme setting panel.margin (a unit) controls gap between panels in facetted plots (for bot...
2008 Nov 21
0
ggplot2 - version 0.8
...s in other geoms (point, line, etc) * geom_line, geom_path, geom_segment: lines have squared ends * geom_point, geom_pointrange and geom_boxplot: now use shape = 16 instead of 19. This shape does not have a border from R 2.8 on, and so will look better when displayed transparently. * geom_contour, geom_density2d, geom_quantile and geom_smooth use a bright blue colour for lines, to make them stand out when used with black points * scale_gradient: tweaked default colours to make more aesthetically pleasing * theme: new theme setting panel.margin (a unit) controls gap between panels in facetted plots (for bot...