3-D graphing with Google

[This article was first published on Revolutions, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

You probably already knew that you can draw mathematical equations in Google by typing the equation into the search box. For example, here's the Standard Normal density function:

Google Normal

I can't find a way to embed the graph directly, but if you click on it you'll find it's interactive: you can inspect points, zoom in/out etc. You can create a similar chart in R quite easily with the command:

plot(dnorm,xlim=c(-4,4))

(This works because there is a method for objects of type “function” — like dnorm — for the generic plot function.) It's not quite so eay to visualize of a function of two arguments in R, but Google has just announced a new capability for graphing bivariate equations as a 3-D surface. For example:

Google 3-d

If you have a touchpad, the chart reacts to swiping gestures to allow you to rotate and inspect the surface. Play around with other bivariate equations in the search box to see what you can draw!

Google Inside Search: Graphing on Google.com – Now in 3D

To leave a comment for the author, please follow the link and comment on their blog: Revolutions.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)