To install the OceanView R package http://www.rforscience.com/rpackages/visualisation/, startup your R and type
install.packages("OceanView")
You will be asked for a mirror to download from and the package will install itself.
Sometimes, the dependencies are not immediately resolved.
Follow http://stackoverflow.com/questions/15292905/how-to-solve-the-error-missing-required-header-gl-gl-h-while-installing-the-p advice and update your libGL libraries, then again try installing OceanView; you can also manually try the dependencies
install.packages("shape") install.packages("rgl") install.packages("plot3D") install.packages("plot3Drgl")