labels_data.RdFunctional API to add and customise points on globe.
labels_data(globe, data) labels_lat(globe, lat = "lat") labels_lon(globe, lon = "lng") labels_text(globe, text = "text") labels_color(globe, color = constant("#ffffaa")) labels_altitude(globe, altitude = 0L) labels_size(globe, size = 0.5) labels_typeface(globe, typeface) labels_rotation(globe, rotation = 0L) labels_resolution(globe, resolution = 3L) labels_include_dot(globe, include = FALSE) labels_dot_radius(globe, radius = 0.1) labels_dot_orientation(globe, orientation = constant("bottom")) labels_transition(globe, transition = 1000L) labels_on_click(globe, func) labels_on_right_click(globe, func) labels_on_hover(globe, func)
| globe | An object of class |
|---|---|
| data | A data.frame of points to draw. |
| lat | Column names or numeric value indicating coordinates. |
| lon | Column names or numeric value indicating coordinates. |
| text | Column name or constant of text. |
| color | Column name or character vector indicating color of points. |
| altitude | Column name or character vector indicating altitude of points in terms of globe radius units (0 = 0 altitude (flat circle), 1 = globe radius). |
| size | Column name or constant of the size of the label text height, in angular degrees. |
| typeface | Font of |
| rotation | Column name or constant of the label rotation in degrees. The rotation is performed clockwise along the axis of its latitude parallel plane. |
| resolution | Numeric value defining the geometric resolution of each cylinder, expressed in how many slice segments to divide the circumference. Higher values yield smoother cylinders. |
| include | Boolean or colum name indicating whether to show the dot. |
| radius | Column name of radius a numeric constant for the cylinder's radius, in angular degrees. |
| orientation | Orientation of label, |
| transition | Duration (ms) of the transition
to animate point changes involving geometry modifications. A value of
|
| func | JavaScript function as character vector. |