Description Usage Arguments Value Author(s) Examples
This function plots a scatterplot similar to the default plot-function, with the difference that factor/character fields in input data.frame are handled as categorical variables. These categorical variables are color-coded and handled separately in marginal distributions.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
x |
A data.frame or a matrix of observations. Typically x should be a data.frame, where columns are of different types, e.g. some of 'numeric' and some of 'factor' class. |
main |
Main title plotted on top of the figure |
match |
A matching matrix (e.g. produced by hamlet::match.vec2mat) or a matching vector (e.g. produced by hamlet::match.mat2vec) that indicates with different values if certain observations should be connected. |
func |
The function to apply to each pair of observations 'x' and 'y'. By default, it is a segment line in 2 dimensions (each individual bivariate panel). Segment line color is indicated by the matching vector or individual element in the matching matrix. Thus 0-values indicate no line, while other values are used to annotate submatches. 'par' is the index of the submatch, and by default indicate the colors. |
legend |
Should an automated legend be generated |
col |
Colors per observation |
na.lines |
Should lines be drawn to represent one of the variables if the other one is missing in a 2-dim scatterplot |
origin |
Should the origin x=0, y=0 be separately indicated using lines |
marginal |
Should marginal distributions be drawn in sides of each scatterplot |
lhei |
Heights for bins in the layout |
lwid |
Widths for bins in the layout |
verb |
Level of verbosity: -1<= (no verbosity), 0/FALSE (warnings) or >=1/TRUE (additional information) |
... |
Additional parameters given to the plot-function |
An invisible return of the measurements and plot layout structure (matrix, heights, and widths)
Teemu Daniel Laajala <teelaa@utu.fi>
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.