third.eye | R Documentation |
Sometimes with multivariate data, it is important to be able to view the graphics from different
perspectives (e.g., swapping the axis with a paneled variable). One could simply modify the formula in "flexplot()"
, but that's tedious.
It is much better to hire a psychic to do the modifications for you. That's where "third.eye()"
comes in.
With this simple function, the user only needs to specify a formula, and it will permute the different combinations ofr
formulae to generate different views. So, put on your psychic lenses and prepare for a wild ride.
third.eye(
formula,
data,
fixed.positions = NULL,
which.perms = NULL,
plot = NULL,
...
)
formula |
A |
data |
A dataset. |
fixed.positions |
a vector of booleons that is as long as the number of variables specified. This will specify which variables ought to remain fixed in
place. For example, if the formula is |
which.perms |
a vector of numbers. Normally |
plot |
A |
... |
Other parameters passed to flexplot. |
a Graphic
flexplot
data(exercise_data)
third.eye(weight.loss~gender + motivation | therapy.type + health, data=exercise_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.