Description Usage Arguments Details Value Author(s) Examples
get_theme create a theme list to control the color we see in the remap.including lineColor, backgroundColor, titleColor, borderColor and regionColor.
1 2 3 4 | get_theme(theme = "Dark", lineColor = "Random",
backgroundColor = "#1b1b1b", titleColor = "#fff",
borderColor = "rgba(100,149,237,1)", regionColor = "#1b1b1b",
labelShow = T, pointShow = F, pointColor = "gold")
|
theme |
a character object in ("Dark","Bright,"Sky","none) |
lineColor |
Control the color of the line, "Random" for random color |
backgroundColor |
Control the color of the background |
titleColor |
Control the color of the title |
borderColor |
Control the color of the border |
regionColor |
Control the color of the region |
labelShow |
whether show the label of each element, only support mapC. |
pointShow |
whether show the center point of each element, only support mapC. |
pointColor |
color of the center point of each element, only support mapC. |
If you use the theme argument of the get_theme function, you will get the default theme in one of ("Dark","Bright,"Sky"). If you don't like the color, set theme = "none" and use other parameters control remap.\ Can use "red","#1b1b1b" or rgba(100,100,100,1) to control the color
A list of color control, which can be used by remap
Chiffon <http://lchiffon.github.io>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | ## default theme:"Dark"
set.seed(125)
out = remap(demoC,title = "REmap<U+7EC0><U+8F70><U+7DE5><U+93C1><U+7248><U+5D41>",subtitle = "theme:Bright",
theme = get_theme("Bright"))
plot(out)
## set Line color as 'orange'
set.seed(125)
out = remap(demoC,title = "REmap<U+7EC0><U+8F70><U+7DE5><U+93C1><U+7248><U+5D41>",subtitle = "theme:Bright",
theme = get_theme("None",
lineColor = "orange"))
plot(out)
## Set backgroundColor as 'red'(#FF0000)
out = remap(demoC,title = "REmap<U+7EC0><U+8F70><U+7DE5><U+93C1><U+7248><U+5D41>",subtitle = "theme:Bright",
theme = get_theme("None",
lineColor = "orange",
backgroundColor = "#FF0000"))
plot(out)
## Set TitleColor
out = remap(demoC,title = "REmap<U+7EC0><U+8F70><U+7DE5><U+93C1><U+7248><U+5D41>",subtitle = "theme:Bright",
theme = get_theme("None",
lineColor = "orange",
backgroundColor = "#FFC1C1",
titleColor = "#1b1b1b"))
plot(out)
## Set Region Color
out = remap(demoC,title = "REmap<U+7EC0><U+8F70><U+7DE5><U+93C1><U+7248><U+5D41>",subtitle = "theme:Bright",
theme = get_theme("None",
lineColor = "orange",
backgroundColor = "#FFC1C1",
titleColor = "#1b1b1b",
regionColor = '#ADD8E6'))
plot(out)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.