repl2blank | R Documentation |
ggplot作図の際に軸ラベルの一部を空白にすることで minor break の ようにみせかける.
repl2blank(
vec,
nskip = 1,
shift = 0,
first = FALSE,
last = FALSE,
inverse = FALSE,
comma = FALSE
)
vec |
A character or an numeric vector. ラベルにする文字列/数値ベクトル |
nskip |
何個置きに空白文字にするか, Default: 1. |
shift |
blankで置き換える位置を右にずらす. Default: 0. |
first |
1個目の値を空白にする, Default: FALSE. TRUEで強制的に空白にする . inverse = TRUE の時は逆動作となる. |
last |
最後の値を空白にする, Default: FALSE. TRUEで強制的に空白にする. inverse = TRUE の時は逆動作となる. |
inverse |
空白と非空白を逆転させる, Default: FALSE |
comma |
3桁ごとにコンマをつける, Default: FALSE |
See example and also vignette("repl2blank")
A character vector
label_repl2blank
repl2blank(1:10)
repl2blank(1:10, nskip = 2)
repl2blank(1:10, nskip = 2, shift = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.