property.cube {SetMethods}R Documentation

Function producing a 3D scatter plot.

Description

A function for visualizing 3D property spaces as a 3D scatter plot using the scatterplot3d package.

Usage

property.cube(data, labs = FALSE, 
                          main = "3D Property Space", 
                          xlab=NULL, 
                          ylab=NULL, 
                          zlab=NULL,
                          highlight.3d=TRUE,
                          dot.cex=0.5,
                          dot.col="black",
                          dot.srt=15,
                          dot.pos=3,
                          dot.offset = 1)

Arguments

data

A dataframe with 3 conditions.

labs

Logical. Should the case names be printed? If set to TRUE, it will automatically print the rownames of the dataframe given.

main

an overall title for the plot. The default is "3D Property Space"

xlab

a title for the x-axis. The default is the name of the first column in the dataframe.

ylab

a title for the y-axis. The default is the name of the third column in the dataframe.

zlab

a title for the z-axis. The default is the name of the second column in the dataframe.

highlight.3d

Logical. Should dots be colored differently according to their position in the property space?

dot.cex

size of the case labels

dot.col

color of the case labels

dot.srt

rotation of the case labels

dot.pos

position of the case labels (1-below, 2-left, 3-above, 4-right)

dot.offset

distance of text label from the dot

Value

It returns an enhanced 3d scatter plot using the scatterplot3d package.

Author(s)

Ioana-Elena Oana

Examples


# Load the Schneider data:

data(SCHF)

# Create a property space for conditions "EMP","BARGAIN", and outcome "EXPORT":

property.cube(SCHF[,c("EMP","BARGAIN","EXPORT")])

# Create a property space for conditions 1,2, and 3 in the data together with case labels:

property.cube(SCHF[,1:3], labs=TRUE)

[Package SetMethods version 4.0 Index]