3D surface with a 2D projection using R
up vote
3
down vote
favorite
I need to plot a 3D surface with 2D projections like the one below using R.
It features a 3D density plot, something easy to do in R using plotly, for example. The 2D surfaces on the other hand I've had no luck so far in my search for how to draw them. The best I've found is this example, but it uses Python instead of R.
I have also found that package RSM (Response Surface Methods) may have the tools to draw this graph, but I've studied the package documentation and looked for online examples and so far I have not been able to find anything close to this graph in quality.
Base R function persp looks like it could offer some answer too, but I've had no success using it to draw the 2D projections so far. Package plot3D may also offer clues to the solution.
Thanks in advance for any help on this.
r ggplot2 r-plotly density-plot
add a comment |
up vote
3
down vote
favorite
I need to plot a 3D surface with 2D projections like the one below using R.
It features a 3D density plot, something easy to do in R using plotly, for example. The 2D surfaces on the other hand I've had no luck so far in my search for how to draw them. The best I've found is this example, but it uses Python instead of R.
I have also found that package RSM (Response Surface Methods) may have the tools to draw this graph, but I've studied the package documentation and looked for online examples and so far I have not been able to find anything close to this graph in quality.
Base R function persp looks like it could offer some answer too, but I've had no success using it to draw the 2D projections so far. Package plot3D may also offer clues to the solution.
Thanks in advance for any help on this.
r ggplot2 r-plotly density-plot
3
This question is interesting, but you should make it reproducible by adding some data and code.
– alistaire
Nov 7 at 1:43
2
Perhaps overkill, but some aspects of this display should be possible using github.com/tylermorganwall/rayshader
– Jon Spring
Nov 7 at 4:19
@alistaire I do not have any data nor code since I do not know what package would be able to draw such a graph. The specific surface and 2D projections are also not important.
– thomasvconti
Nov 7 at 12:27
Making a reprex is not an option for an SO question; it's a requirement without which this question is likely to get closed. Open-ended questions get a more favorable response over at RStudio Community.
– alistaire
Nov 7 at 13:44
Thergl
package might of a possible solution for the 3D plot, but you may need to manually create the 2D projections. Good luck.
– Dave2e
Nov 7 at 20:01
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I need to plot a 3D surface with 2D projections like the one below using R.
It features a 3D density plot, something easy to do in R using plotly, for example. The 2D surfaces on the other hand I've had no luck so far in my search for how to draw them. The best I've found is this example, but it uses Python instead of R.
I have also found that package RSM (Response Surface Methods) may have the tools to draw this graph, but I've studied the package documentation and looked for online examples and so far I have not been able to find anything close to this graph in quality.
Base R function persp looks like it could offer some answer too, but I've had no success using it to draw the 2D projections so far. Package plot3D may also offer clues to the solution.
Thanks in advance for any help on this.
r ggplot2 r-plotly density-plot
I need to plot a 3D surface with 2D projections like the one below using R.
It features a 3D density plot, something easy to do in R using plotly, for example. The 2D surfaces on the other hand I've had no luck so far in my search for how to draw them. The best I've found is this example, but it uses Python instead of R.
I have also found that package RSM (Response Surface Methods) may have the tools to draw this graph, but I've studied the package documentation and looked for online examples and so far I have not been able to find anything close to this graph in quality.
Base R function persp looks like it could offer some answer too, but I've had no success using it to draw the 2D projections so far. Package plot3D may also offer clues to the solution.
Thanks in advance for any help on this.
r ggplot2 r-plotly density-plot
r ggplot2 r-plotly density-plot
edited Nov 7 at 12:31
asked Nov 7 at 1:17
thomasvconti
265
265
3
This question is interesting, but you should make it reproducible by adding some data and code.
– alistaire
Nov 7 at 1:43
2
Perhaps overkill, but some aspects of this display should be possible using github.com/tylermorganwall/rayshader
– Jon Spring
Nov 7 at 4:19
@alistaire I do not have any data nor code since I do not know what package would be able to draw such a graph. The specific surface and 2D projections are also not important.
– thomasvconti
Nov 7 at 12:27
Making a reprex is not an option for an SO question; it's a requirement without which this question is likely to get closed. Open-ended questions get a more favorable response over at RStudio Community.
– alistaire
Nov 7 at 13:44
Thergl
package might of a possible solution for the 3D plot, but you may need to manually create the 2D projections. Good luck.
– Dave2e
Nov 7 at 20:01
add a comment |
3
This question is interesting, but you should make it reproducible by adding some data and code.
– alistaire
Nov 7 at 1:43
2
Perhaps overkill, but some aspects of this display should be possible using github.com/tylermorganwall/rayshader
– Jon Spring
Nov 7 at 4:19
@alistaire I do not have any data nor code since I do not know what package would be able to draw such a graph. The specific surface and 2D projections are also not important.
– thomasvconti
Nov 7 at 12:27
Making a reprex is not an option for an SO question; it's a requirement without which this question is likely to get closed. Open-ended questions get a more favorable response over at RStudio Community.
– alistaire
Nov 7 at 13:44
Thergl
package might of a possible solution for the 3D plot, but you may need to manually create the 2D projections. Good luck.
– Dave2e
Nov 7 at 20:01
3
3
This question is interesting, but you should make it reproducible by adding some data and code.
– alistaire
Nov 7 at 1:43
This question is interesting, but you should make it reproducible by adding some data and code.
– alistaire
Nov 7 at 1:43
2
2
Perhaps overkill, but some aspects of this display should be possible using github.com/tylermorganwall/rayshader
– Jon Spring
Nov 7 at 4:19
Perhaps overkill, but some aspects of this display should be possible using github.com/tylermorganwall/rayshader
– Jon Spring
Nov 7 at 4:19
@alistaire I do not have any data nor code since I do not know what package would be able to draw such a graph. The specific surface and 2D projections are also not important.
– thomasvconti
Nov 7 at 12:27
@alistaire I do not have any data nor code since I do not know what package would be able to draw such a graph. The specific surface and 2D projections are also not important.
– thomasvconti
Nov 7 at 12:27
Making a reprex is not an option for an SO question; it's a requirement without which this question is likely to get closed. Open-ended questions get a more favorable response over at RStudio Community.
– alistaire
Nov 7 at 13:44
Making a reprex is not an option for an SO question; it's a requirement without which this question is likely to get closed. Open-ended questions get a more favorable response over at RStudio Community.
– alistaire
Nov 7 at 13:44
The
rgl
package might of a possible solution for the 3D plot, but you may need to manually create the 2D projections. Good luck.– Dave2e
Nov 7 at 20:01
The
rgl
package might of a possible solution for the 3D plot, but you may need to manually create the 2D projections. Good luck.– Dave2e
Nov 7 at 20:01
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53182432%2f3d-surface-with-a-2d-projection-using-r%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
3
This question is interesting, but you should make it reproducible by adding some data and code.
– alistaire
Nov 7 at 1:43
2
Perhaps overkill, but some aspects of this display should be possible using github.com/tylermorganwall/rayshader
– Jon Spring
Nov 7 at 4:19
@alistaire I do not have any data nor code since I do not know what package would be able to draw such a graph. The specific surface and 2D projections are also not important.
– thomasvconti
Nov 7 at 12:27
Making a reprex is not an option for an SO question; it's a requirement without which this question is likely to get closed. Open-ended questions get a more favorable response over at RStudio Community.
– alistaire
Nov 7 at 13:44
The
rgl
package might of a possible solution for the 3D plot, but you may need to manually create the 2D projections. Good luck.– Dave2e
Nov 7 at 20:01