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:
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:
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
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.