search for: stat_contour

Displaying 17 results from an estimated 17 matches for "stat_contour".

2012 Feb 14
0
Agregar scatterplot a stat_contour con ggplot2
...ino niveles de tres variables cualquiera. Lo que busco es presentar en un gráfico es: a) el scatterplot de las variables ''x'' e ''y'', y además b) las isolineas de ''z'' para los distintos niveles de ''x'' e ''y (obtenidas con stat_contour), con tal de poder visualizar tanto la dispersión de los datos x-y, como el efecto que estos poseen en una variable respuesta z. Todo bien con las isolineas, pero no logro agragar los puntos. He elegido ggplot2 por el acabado, pero me ha dado buenos dolores de cabeza al intentar combinar ambas sa...
2012 Nov 08
1
A panel of contour plots through a iteration process
Dear all, as you can see from the code I want to create *a panel of 11 contour plots through a iteration process*. I found a thread that address the issue of plotting many contour.plots in the same device, but it does not address my problem! I emphasize that the 11 contour plots must be appeared in the same device through an iteration process and NOT individually! par(mfrow=c(4,3)) # I want them
2024 Jan 11
4
arrow on contour line
...myf <- function(x,y) {x*y} myg <- function(x,y) {x^2 + y^2} d1 <- expand.grid(X1 = x, X2 = y) %>% mutate(Z = myf(X1,X2)) %>% as.data.frame() d2 <- expand.grid(X1 = x, X2 = y) %>% mutate(Z = myg(X1,X2)) %>% as.data.frame() ggplot(data = d1, aes(x=X1,y=X2,z=Z))+ stat_contour(breaks = c(2)) + stat_contour(data=d2, aes(x=X1,y=X2,z=Z), breaks=c(6)) [[alternative HTML version deleted]]
2008 Feb 17
2
filled.contour with log axis
Dear all, I would like to generate a filled.contour plot with log x and y axis, however using: filled.contour(as.line,log="xy") results in a warning message. Does anybody knos what to do? Thanks Thomas
2009 Dec 22
0
ggplot2 version 0.8.5
...nction to make it easy to force the inclusion of any set of values in the limits of any aesthetic. New features (minor) * aesthetics: when _setting_ an aesthetic, you may only set it to a single value. This was always a good idea, but now it is enforced with an informative error message. * stat_contour bump up default number of contours * stat_density2d: make number of grid points used for density estimation user controllable (implements #9) * geom_bin now allows you to set whether bins used intervals of the form (a, b] or [a, b) with the "right" parameter (implements #20) * geom_pa...
2009 Dec 22
0
ggplot2 version 0.8.5
...nction to make it easy to force the inclusion of any set of values in the limits of any aesthetic. New features (minor) * aesthetics: when _setting_ an aesthetic, you may only set it to a single value. This was always a good idea, but now it is enforced with an informative error message. * stat_contour bump up default number of contours * stat_density2d: make number of grid points used for density estimation user controllable (implements #9) * geom_bin now allows you to set whether bins used intervals of the form (a, b] or [a, b) with the "right" parameter (implements #20) * geom_pa...
2012 Jan 17
1
pretty(range(data$z),10) Error
...r 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 nicht-fehlendes Argument für min; gebe Inf zurück 3: In max(x) : kein nicht-fehlendes Argument für max; gebe -Inf zurück 4: In min(x) : kein nicht-fehlendes Argument für min; gebe Inf zurück 5: In max(x) : kein nicht-fehlendes Argument für max; gebe -Inf zurück ==============...
2010 Feb 19
0
ggplot2: version 0.8.6
...scale_date_time now work with infinite positions * scale_date and scale_date_time now take expand argument * scales were not getting automatically added in many situations (Fixes #69) * scale_manual was not returning labels in the correct format and so legends were not getting merged correctly * stat_contour: fix error if x or y coordinates were negative * stat_bin: now copes with bars of zero height (Fixes #72) * stat_qq: always use sorted data (rather than interpolated quantiles) on sample axis. This makes it behave more like qqnorm * stat_quantile: correctly group results * xlim now works with date...
2010 Feb 19
0
ggplot2: version 0.8.6
...scale_date_time now work with infinite positions * scale_date and scale_date_time now take expand argument * scales were not getting automatically added in many situations (Fixes #69) * scale_manual was not returning labels in the correct format and so legends were not getting merged correctly * stat_contour: fix error if x or y coordinates were negative * stat_bin: now copes with bars of zero height (Fixes #72) * stat_qq: always use sorted data (rather than interpolated quantiles) on sample axis. This makes it behave more like qqnorm * stat_quantile: correctly group results * xlim now works with date...
2008 Apr 04
0
ggplot2 - version 0.6
...gle level (thanks to Bob Muenchen for pointing this out!) * stat_bin: no longer incorrectly warns that binwidth is unspecified when breaks are set * stat_bin: now takes origin argument to manually specify origin of first bin (default is round_any(min(range), bin_width, floor)) * stat_boxplot, stat_contour, stat_density2d, stat_qq, stat_density: na.rm parameter added to the following statistics (thanks to Leena Choi for suggesting this) * stat_function: new, makes it easy to superimpose a function on the plot * stat_qq: axes flipped to agree with base R * stat_qq: now uses sample aesthetic to s...
2008 Apr 04
0
ggplot2 - version 0.6
...gle level (thanks to Bob Muenchen for pointing this out!) * stat_bin: no longer incorrectly warns that binwidth is unspecified when breaks are set * stat_bin: now takes origin argument to manually specify origin of first bin (default is round_any(min(range), bin_width, floor)) * stat_boxplot, stat_contour, stat_density2d, stat_qq, stat_density: na.rm parameter added to the following statistics (thanks to Leena Choi for suggesting this) * stat_function: new, makes it easy to superimpose a function on the plot * stat_qq: axes flipped to agree with base R * stat_qq: now uses sample aesthetic to s...
2008 Nov 21
0
ggplot2 - version 0.8
...sqrt etc now correctly transform output from statistics as well as raw data * scale_z_* now removed because no longer used by anything * stat_bin: correctly returns 0 when no observations in a bin (was previously returning NA) * stat_quantreg: deal with yet another new output format from quantreg * stat_contour now has arguments to control the position of the contours, rather than relying on the z scale * theme: panel.empty setting removed as it is no longer used * theme_grey now aliased to theme_gray * theme_line: setting size works correctly * theme_rect, theme_segment: size now measured in mm, to be co...
2008 Nov 21
0
ggplot2 - version 0.8
...sqrt etc now correctly transform output from statistics as well as raw data * scale_z_* now removed because no longer used by anything * stat_bin: correctly returns 0 when no observations in a bin (was previously returning NA) * stat_quantreg: deal with yet another new output format from quantreg * stat_contour now has arguments to control the position of the contours, rather than relying on the z scale * theme: panel.empty setting removed as it is no longer used * theme_grey now aliased to theme_gray * theme_line: setting size works correctly * theme_rect, theme_segment: size now measured in mm, to be co...
2012 Mar 02
0
ggplot2 0.9.0
...et. Notched box plots are now supported by setting `notch = TRUE` (thanks to Winston Chang for the patch). * `ggsave` can work with cm and mm `units` (Thanks to patch from Jean-Olivier Irisson) * `scale_shape` finally returns an error when you try and use it with a continuous variable * `stat_contour` no longer errors if all breaks outside z range (fixes #195). * `geom_text` remove rows with missing values with warning (fixes #191) * New generic function `autoplot` for the creation of complete plots specific to a given data structure. Default implementation throws an error. It is designed...
2012 Mar 02
0
ggplot2 0.9.0
...et. Notched box plots are now supported by setting `notch = TRUE` (thanks to Winston Chang for the patch). * `ggsave` can work with cm and mm `units` (Thanks to patch from Jean-Olivier Irisson) * `scale_shape` finally returns an error when you try and use it with a continuous variable * `stat_contour` no longer errors if all breaks outside z range (fixes #195). * `geom_text` remove rows with missing values with warning (fixes #191) * New generic function `autoplot` for the creation of complete plots specific to a given data structure. Default implementation throws an error. It is designed...
2017 Oct 09
0
example of geom_contour() with function argument
library(mvtnorm) # you were misusing "require"... only use require if you plan to library(ggplot2) # test the return value and fail gracefully when the package is missing set.seed( 1234 ) xx <- data.frame( rmvt( 100, df = c( 13, 13 ) ) ) xx2 <- expand.grid( X1 = seq( -5, 5, 0.1 ) # all combinations... could be used to fill a matrix , X2 = seq( -5, 5, 0.1 )
2017 Oct 09
3
example of geom_contour() with function argument
Hi, This is not a HW problem, sadly: I was last in a classroom 30 years ago, and can no longer run off to the instructor :-( I apologize but I cut and paste the wrong snippet earlier and made a typo in doing so, but the result is the same with the more appropriate snippet. require(mvtnorm) require(ggplot2) set.seed(1234) xx <- data.frame(rmvt(100, df = c(13, 13))) v <- ggplot(data = xx,