Here is an alternative using geom_polygon which captures the "spirit" of the
fatter tails of the multivariate t (in my opinion, because the display is
quantile-based). Note that I have modified the OP's question somewhat to use
non-identity matrices.
I do came up with a few questions while crea
Thank you very much! So, it appears that a grid has to be created for the
function to be used in stat_contour(). Thanks again for this example! It is
very helpful (and could be a worthwhile addition to geom_contour's help
example).
Btw, I was also trying to make the contour plot have shaded region
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 combinati
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)
requ
> On Oct 9, 2017, at 6:03 AM, Big Floppy Dog wrote:
>
> Hello Ulrik,
>
> I apologize, but I can not see how to provide a pdf in place of the density
> function which calculates a KDE (that is, something from the dataset in the
> example). Can you please point to the specific example that might
Hello Ulrik,
I apologize, but I can not see how to provide a pdf in place of the density
function which calculates a KDE (that is, something from the dataset in the
example). Can you please point to the specific example that might help?
Here is what I get:
require(mvtnorm)
require(ggplot2)
set.s
Hi BFD,
?geom_contour() *does* have helpful examples. Your Google-foo is weak:
Searching for geom_contour brought me:
http://ggplot2.tidyverse.org/reference/geom_contour.html as the first
result.
HTH
Ulrik
On Mon, 9 Oct 2017 at 08:04 Big Floppy Dog wrote:
> Can someone please point me to an ex
Can someone please point me to an example with geom_contour() that uses a
function? The help does not have an example of a function, and also I did
not find anything from online searches.
TIA,
BFD
---
H
8 matches
Mail list logo