joint Plot
Produces a joint plot that contains bivariate and univariate graphs at the same time.
Notes
To hide axis tooltips, set "blank" or the result of elementBlank()
to the axisTooltip
, axisTooltipX
or axisTooltipY
parameter of the theme()
.
Examples
Parameters
The data to be displayed.
Name of the variable.
Name of the variable.
default = "point" ("point", "tile", "density2d", "density2df", "none"). The geometric object to use to display the data. No object will be used if geom="none"
.
Number or a Pair of Numbers. Number of bins in both directions, vertical and horizontal. Overridden by binWidth
. If only one value given - interpret it as list of two equal values. Applicable simultaneously for "tile" geom and "histogram" marginal.
Number or a Pair of Numbers. The width of the bins in both directions, vertical and horizontal. Overrides bins
. The default is to use bin widths that cover the entire range of the data. If only one value given - interpret it as list of two equal values. Applicable simultaneously for "tile" geom and "histogram" marginal.
Color of a geometry. For more info see: aesthetics.html#color-and-fill.
Size of a geometry.
Transparency level of a geometry. Understands numbers between 0 and 1.
Name of grouping variable.
default = true. false - do not show legend the main layer.
If true - show the line of linear regression.
default = true. Displays confidence interval around regression line.
Description of marginal layers packed to string value. Different marginals are separated by the ',' char. Parameters of a marginal are separated by the ':' char.
First parameter of a marginal is a geometry name. Possible values: "dens"/"density", "hist"/"histogram", "box"/"boxplot".
Second parameter is a string specifying which sides of the plot the marginal layer will appear on. Possible values: 't' (top), 'b' (bottom), 'l' (left), 'r' (right).
Third parameter (optional) is size of marginal. To suppress marginals use marginal="none"
.
Examples:
"hist:tr:0.3",
"dens:tr,hist:bl",
"box:tr:.05, hist:bl, dens:bl".