Learn R Programming

dimensio (version 0.10.1)

viz_labels: Non-Overlapping Text Labels

Description

Non-Overlapping Text Labels

Usage

viz_labels(x, filter = "contribution", n = 10, type = "shadow", ...)

Arguments

x

A data.frame (typically returned by prepare_plot()).

filter

A character string specifying the variable used to filter observations. If NULL, all labels are drawn.

n

An integer specifying the number of labels to draw. Only the labels of the top \(n\) observations according to filter will be drawn. If NULL, all labels are drawn.

type

A character string specifying the shape of the field. It must be one of "text", "shadow" or "box". Any unambiguous substring can be given.

...

Currently not used.

Author

N. Frerebeau

Details

Only labels in the plotting region (given by par("usr")) will be drawn.