diff --git a/README.Rmd b/README.Rmd index 5e0b2bc..16cdf8e 100644 --- a/README.Rmd +++ b/README.Rmd @@ -11,7 +11,9 @@ knitr::opts_chunk$set( fig.path = "man/figures/README-", out.width = "100%", warning = FALSE, - message = FALSE + message = FALSE, + dpi = 300, + dev.args = list(type = "cairo") ) desc = read.dcf('DESCRIPTION') diff --git a/docs/404.html b/docs/404.html index c75726d..b309118 100644 --- a/docs/404.html +++ b/docs/404.html @@ -13,8 +13,8 @@ - - + + @@ -31,7 +31,7 @@ visualizeR - 0.3.9000 + 0.4.9000 + + + + + +
+
+
+ +
+

Simple bar chart

+
+ +
+

Usage

+
bar(
+  df,
+  x,
+  y,
+  group = NULL,
+  flip = TRUE,
+  percent = TRUE,
+  position = "dodge",
+  alpha = 1,
+  x_title = NULL,
+  y_title = NULL,
+  group_title = NULL,
+  title = NULL,
+  subtitle = NULL,
+  caption = NULL,
+  add_text = FALSE,
+  add_text_suffix = "",
+  theme = theme_reach()
+)
+
+ +
+

Arguments

+
df
+

A data frame.

+ + +
x
+

A numeric column.

+ + +
y
+

A character column or coercible as a character column.

+ + +
group
+

Some grouping categorical column, e.g. administrative areas or population groups.

+ + +
flip
+

TRUE or FALSE. Default to TRUE or horizontal bar plot.

+ + +
percent
+

TRUE or FALSE. Should the x-labels (and text labels if present) be displayed as percentages? Default to TRUE.

+ + +
position
+

Should the chart be stacked? Default to "dodge". Can take "dodge" and "stack".

+ + +
alpha
+

Fill transparency.

+ + +
x_title
+

The x scale title. Default to NULL.

+ + +
y_title
+

The y scale title. Default to NULL.

+ + +
group_title
+

The group legend title. Default to NULL.

+ + +
title
+

Plot title. Default to NULL.

+ + +
subtitle
+

Plot subtitle. Default to NULL.

+ + +
caption
+

Plot caption. Default to NULL.

+ + +
add_text
+

TRUE or FALSE. Add the value as text.

+ + +
add_text_suffix
+

If percent is FALSE, should we add a suffix to the text label?

+ + +
theme
+

Whatever theme. Default to theme_reach().

+ +
+
+

Value

+ + +

A bar chart

+
+ +
+ + +
+ + + +
+ + + + + + + diff --git a/docs/reference/bar_reach.html b/docs/reference/bar_reach.html deleted file mode 100644 index 4227377..0000000 --- a/docs/reference/bar_reach.html +++ /dev/null @@ -1,196 +0,0 @@ - -Simple bar chart — bar_reach • visualizeR - Skip to contents - - -
-
-
- -
-

`ggblanket` as internals for deciding whether the bar chart is horizontally readable.

-
- -
-

Usage

-
bar_reach(
-  df,
-  x,
-  y,
-  group = NULL,
-  percent = TRUE,
-  palette = "main",
-  reverse = FALSE,
-  family = "Leelawadee",
-  alpha = 1,
-  width = 0.5,
-  x_title = NULL,
-  y_title = NULL,
-  group_title = NULL,
-  position = "dodge",
-  title = NULL,
-  subtitle = NULL,
-  caption = NULL,
-  text_size = 10,
-  title_size = 14,
-  legend_position = "right",
-  legend_rev = TRUE,
-  ...
-)
-
- -
-

Arguments

-
df
-

A data frame.

- - -
x
-

A numeric column.

- - -
y
-

A character column or coercible as a character column.

- - -
group
-

Some grouping categorical column, e.g. administrative areas or population groups.

- - -
percent
-

TRUE or FALSE. Should the x-labels be displayed as percentages? Default to TRUE.

- - -
palette
-

Palette name from 'pal_reach()'.

- - -
reverse
-

Boolean indicating whether the palette should be reversed.

- - -
family
-

The font family for all plot's texts. Default to "Leelawadee".

- - -
alpha
-

Transparency.

- - -
width
-

Width.

- - -
x_title
-

The x scale title. Default to NULL.

- - -
y_title
-

The y scale title. Default to NULL.

- - -
group_title
-

The group legend title. Default to NULL.

- - -
position
-

Should the chart be stacked? Default to "dodge". Can take "dodge" and "stack".

- - -
title
-

Plot title. Default to NULL.

- - -
subtitle
-

Plot subtitle. Default to NULL.

- - -
caption
-

Caption title string. Default to NULL.

- - -
text_size
-

The size of all text other than the title, subtitle and caption. Defaults to 10.

- - -
title_size
-

The size of the title text. Defaults to 14.

- - -
legend_position
-

Position of the legend; Default to "right". Can take "right", "left", "top", "bottom" or "none".

- - -
legend_rev
-

Reverse the color in the guide? Default to TRUE.

- - -
...
-

Other arguments to be passed to "ggblanket::gg_col"

- -
-
-

Value

- - -

A bar chart

-
- -
- - -
- - - -
- - - - - - - diff --git a/docs/reference/border_admin0.html b/docs/reference/border_admin0.html index 91e1989..8973dda 100644 --- a/docs/reference/border_admin0.html +++ b/docs/reference/border_admin0.html @@ -1,5 +1,5 @@ -Haïti border. — border_admin0 • visualizeRHaïti border. — border_admin0 • visualizeR @@ -10,7 +10,7 @@ visualizeR - 0.3.9000 + 0.4.9000 + + + + + +
+
+
+ +
+

Simple bar chart

+
+ +
+

Usage

+
point(
+  df,
+  x,
+  y,
+  group = NULL,
+  flip = TRUE,
+  alpha = 1,
+  size = 1,
+  x_title = NULL,
+  y_title = NULL,
+  group_title = NULL,
+  title = NULL,
+  subtitle = NULL,
+  caption = NULL,
+  theme = theme_reach()
+)
+
+ +
+

Arguments

+
df
+

A data frame.

+ + +
x
+

A numeric column.

+ + +
y
+

A character column or coercible as a character column.

+ + +
group
+

Some grouping categorical column, e.g. administrative areas or population groups.

+ + +
flip
+

TRUE or FALSE. Default to TRUE or horizontal bar plot.

+ + +
alpha
+

Fill transparency.

+ + +
size
+

Point size.

+ + +
x_title
+

The x scale title. Default to NULL.

+ + +
y_title
+

The y scale title. Default to NULL.

+ + +
group_title
+

The group legend title. Default to NULL.

+ + +
title
+

Plot title. Default to NULL.

+ + +
subtitle
+

Plot subtitle. Default to NULL.

+ + +
caption
+

Plot caption. Default to NULL.

+ + +
theme
+

Whatever theme. Default to theme_reach().

+ +
+
+

Value

+ + +

A bar chart

+
+ +
+ + +
+ + + +
+ + + + + + + diff --git a/docs/reference/point_reach.html b/docs/reference/point_reach.html deleted file mode 100644 index 36bbf52..0000000 --- a/docs/reference/point_reach.html +++ /dev/null @@ -1,181 +0,0 @@ - -Simple point chart — point_reach • visualizeR - Skip to contents - - -
-
-
- -
-

`ggblanket` as internals for deciding whether the bar chart is horizontally readable.

-
- -
-

Usage

-
point_reach(
-  df,
-  x,
-  y,
-  group = NULL,
-  palette = "main",
-  reverse = FALSE,
-  family = "Leelawadee",
-  alpha = 1,
-  size = 1.5,
-  x_title = NULL,
-  y_title = NULL,
-  group_title = NULL,
-  title = NULL,
-  subtitle = NULL,
-  caption = NULL,
-  text_size = 10,
-  title_size = 14,
-  legend_position = "right",
-  ...
-)
-
- -
-

Arguments

-
df
-

A data frame.

- - -
x
-

A numeric column.

- - -
y
-

A character column or coercible as a character column.

- - -
group
-

Some grouping categorical column, e.g. administrative areas or population groups.

- - -
palette
-

Palette name from 'pal_reach()'.

- - -
reverse
-

Boolean indicating whether the palette should be reversed.

- - -
family
-

The font family for all plot's texts. Default to "Leelawadee".

- - -
alpha
-

Transparency.

- - -
size
-

Dot size. Default to 1.5.

- - -
x_title
-

The x scale title. Default to NULL.

- - -
y_title
-

The y scale title. Default to NULL.

- - -
group_title
-

The group legend title. Default to NULL.

- - -
title
-

Plot title. Default to NULL.

- - -
subtitle
-

Plot subtitle. Default to NULL.

- - -
caption
-

Caption title string. Default to NULL.

- - -
text_size
-

The size of all text other than the title, subtitle and caption. Defaults to 10.

- - -
title_size
-

The size of the title text. Defaults to 14.

- - -
legend_position
-

Position of the legend; Default to "right". Can take "right", "left", "top", "bottom" or "none".

- - -
...
-

Other arguments to be passed to "ggblanket::gg_col"

- -
-
-

Value

- - -

A bar chart

-
- -
- - -
- - - -
- - - - - - - diff --git a/docs/reference/scale_color.html b/docs/reference/scale_color.html index 8fb6028..7f0e05a 100644 --- a/docs/reference/scale_color.html +++ b/docs/reference/scale_color.html @@ -1,5 +1,5 @@ -Color scale constructor for REACH or AGORA colors — scale_color • visualizeRColor scale constructor for REACH or AGORA colors — scale_color • visualizeR @@ -10,7 +10,7 @@ visualizeR - 0.3.9000 + 0.4.9000