Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confidence bands for 2D contours #54

Open
rpomponio opened this issue Jan 29, 2019 · 2 comments
Open

Confidence bands for 2D contours #54

rpomponio opened this issue Jan 29, 2019 · 2 comments

Comments

@rpomponio
Copy link

Is it possible to produce a 2D contour map of a 3D surface with additional contours representing the error in estimation? For an example in base R, see below, which uses the predict.gam() function in package mgcv...

image

@mfasiolo
Copy link
Owner

mfasiolo commented Jan 29, 2019

Hi, actually that's something that is currently missing in mgcViz. The difficulty is that (as far as I know) there is no easy way of labeling the level curves in ggplot2 (see #4 ). So that the resulting contour plot would have black, green and red curves with no labels, which would be quite hard to interpret.

Maybe you could have a look at the plotRGL function on mgcViz, which plots the 2D effect in 3D, with confidence surfaces.

@rpomponio
Copy link
Author

Thanks! Yes I can understand the difficulty. For now, I am generating the figures with base R, but if this becomes available in the future I'd gladly upgrade to mgcViz.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants