gg_partial_coplot
objectConstruct a set of (x, y, z) matrices for surface plotting a
gg_partial_coplot
object
surface_matrix(dta, xvar)
a gg_partial_coplot object containing at least 3 numeric columns of data
a vector of 3 column names from the data object, in (x, y, z) order
To create a surface plot, the plot3D::surf3D
function expects
3 matrices of n.x by n.y. Take the p+1 by n gg_partial_coplot
object,
and extract and construct the x, y and z matrices from the provided
xvar
column names.