View source: R/tm_components.R
tm_compass | R Documentation |
Map component that adds a compass
tm_compass(
north,
type,
text.size,
size,
show.labels,
cardinal.directions,
text.color,
color.dark,
color.light,
lwd,
position,
group_id,
bg,
bg.color,
bg.alpha,
stack,
just,
frame,
frame.color,
frame.alpha,
frame.lwd,
frame.r,
margins,
z,
...
)
north |
north |
type |
compass type, one of: |
text.size |
text.size |
size |
size |
show.labels |
show.labels |
cardinal.directions |
cardinal.directions |
text.color |
text.color |
color.dark |
color.dark |
color.light |
color.light |
lwd |
lwd |
position |
The position specification of the component: an object created with |
group_id |
Component group id name. All components (e.g. legends, titles, etc) with the same |
bg |
Show background? |
bg.color |
Background color |
bg.alpha |
Background transparency |
stack |
stack with other map components, either |
just |
just |
frame |
frame should a frame be drawn? |
frame.color |
frame color |
frame.alpha |
frame alpha transparancy |
frame.lwd |
frame line width |
frame.r |
Radius of the rounded frame corners. 0 means no rounding. |
margins |
margins |
z |
z index, e.g. the place of the component relative to the other componets |
... |
to catch deprecated arguments (alpha) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.