p3d is a very rough collection of functions to help visualize models
that are expressed as functions of two independent variables with the
addition of a possible categorical variable. It is based on an older version
scatter3d in the
car package by John Fox which, in turn,
The essential idea is provided by the
which allows plotting a data frame via a formula of the form
y ~ x + z [| g], where
y is the response,
x, z are independent variables and
g is an optional
grouping factor. In addition to generating the plot, the function
saves information about the current data frame and graphics parameters
in a globally accessible structure.
Following a call to
Plot3d, the following can be done using simple calls:
points can be interactively labeled using
the fitted surfaces for other related
models using the same data can be added using
graphical annotations that can be represented as a collection of line segments in 3D space
can be added using
3D data ellipsoids can be added using
In addition, the package contains a variety of utility functions for working with 2D and 3D models, graphical enhancements and 3D geometry.
|License:||GPL version 2 or newer|
A simple example below illustrates the major features of
Lines3d.default: 2009-05-09: disabled line changing 'lwd' to 'size' since 'segments3d' uses 'lwd'.
Maintainer: Georges Monette <[email protected]>
Monette, G. (1990), Geometry of Multiple Regression and Interactive 3-D Graphics, In Fox, J. & Long, S. (ed.), Modern Methods of Data Analysis, Sage Publications, 209-256.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.