diff --git a/.Rbuildignore b/.Rbuildignore
index 428e9ea..ddcf9c2 100644
--- a/.Rbuildignore
+++ b/.Rbuildignore
@@ -5,3 +5,5 @@ admin_color_tools
^_pkgdown\.yml$
^docs$
^pkgdown$
+^doc$
+^Meta$
diff --git a/.gitignore b/.gitignore
index db2a3a0..6bef60e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -66,3 +66,5 @@ test_*
brickr.Rproj
brickr_colors.png
inst/doc
+doc
+Meta
diff --git a/docs/CNAME b/docs/CNAME
new file mode 100644
index 0000000..9285f30
--- /dev/null
+++ b/docs/CNAME
@@ -0,0 +1 @@
+brickr.org
diff --git a/docs/articles/graphs.html b/docs/articles/graphs.html
index b4b2976..1a68f5e 100644
--- a/docs/articles/graphs.html
+++ b/docs/articles/graphs.html
@@ -121,7 +121,7 @@
scale_fill_brick() +
coord_brick() +
theme_brick()
-
-
geom_brick_col() draws data columns as bricks.
@@ -164,7 +164,7 @@
scale_fill_brick() +
coord_brick() +
theme_brick()
-
+
-
+
-
-
+
+
Themes
For a complete list of available themes, use build_themes().
-

+

diff --git a/docs/articles/graphs_files/figure-html/coord-1.png b/docs/articles/graphs_files/figure-html/coord-1.png
index a63fe06..64567e1 100644
Binary files a/docs/articles/graphs_files/figure-html/coord-1.png and b/docs/articles/graphs_files/figure-html/coord-1.png differ
diff --git a/docs/articles/graphs_files/figure-html/geom_brick-1.png b/docs/articles/graphs_files/figure-html/geom_brick-1.png
index 4282574..194871a 100644
Binary files a/docs/articles/graphs_files/figure-html/geom_brick-1.png and b/docs/articles/graphs_files/figure-html/geom_brick-1.png differ
diff --git a/docs/articles/graphs_files/figure-html/getting_started-1.png b/docs/articles/graphs_files/figure-html/getting_started-1.png
index ca7d8b5..b305eba 100644
Binary files a/docs/articles/graphs_files/figure-html/getting_started-1.png and b/docs/articles/graphs_files/figure-html/getting_started-1.png differ
diff --git a/docs/articles/graphs_files/figure-html/scales-1.png b/docs/articles/graphs_files/figure-html/scales-1.png
index 8de02df..245bd1a 100644
Binary files a/docs/articles/graphs_files/figure-html/scales-1.png and b/docs/articles/graphs_files/figure-html/scales-1.png differ
diff --git a/docs/articles/graphs_files/figure-html/scales2-1.png b/docs/articles/graphs_files/figure-html/scales2-1.png
index dd43316..eb0ccb6 100644
Binary files a/docs/articles/graphs_files/figure-html/scales2-1.png and b/docs/articles/graphs_files/figure-html/scales2-1.png differ
diff --git a/docs/articles/graphs_files/figure-html/themes-1.png b/docs/articles/graphs_files/figure-html/themes-1.png
index 5778461..e7f0863 100644
Binary files a/docs/articles/graphs_files/figure-html/themes-1.png and b/docs/articles/graphs_files/figure-html/themes-1.png differ
diff --git a/docs/articles/models-from-other_files/figure-html/bricks_6-2.png b/docs/articles/models-from-other_files/figure-html/bricks_6-2.png
index ba005b0..be45378 100644
Binary files a/docs/articles/models-from-other_files/figure-html/bricks_6-2.png and b/docs/articles/models-from-other_files/figure-html/bricks_6-2.png differ
diff --git a/docs/articles/models-from-other_files/figure-html/bricks_rayshader-1.png b/docs/articles/models-from-other_files/figure-html/bricks_rayshader-1.png
index f708da7..5898de7 100644
Binary files a/docs/articles/models-from-other_files/figure-html/bricks_rayshader-1.png and b/docs/articles/models-from-other_files/figure-html/bricks_rayshader-1.png differ
diff --git a/docs/articles/models-from-other_files/figure-html/bricks_rayshader-2.png b/docs/articles/models-from-other_files/figure-html/bricks_rayshader-2.png
index 75819e5..9cbbfb3 100644
Binary files a/docs/articles/models-from-other_files/figure-html/bricks_rayshader-2.png and b/docs/articles/models-from-other_files/figure-html/bricks_rayshader-2.png differ
diff --git a/docs/articles/models-from-program.html b/docs/articles/models-from-program.html
index 197b1ea..5748623 100644
--- a/docs/articles/models-from-program.html
+++ b/docs/articles/models-from-program.html
@@ -134,7 +134,7 @@
build_bricks(brick_res = "hd", phi = 30, theta = 30)
rayshader::render_snapshot(clear = TRUE)
-
+
Using the same logic, we can build a sphere with a specified radius, and then apply rules to color each brick based on its coordinates.
-
+
-
+
Next, we write one more function, brick_street() to build a road and grass foundation. The, for an arbitrary number of houses and neighborhood size, use purrr::pmap_df to generate many houses and place them along the road.
-
+
diff --git a/docs/articles/models-from-program_files/figure-html/bricks_6-1.png b/docs/articles/models-from-program_files/figure-html/bricks_6-1.png
index 7359c9f..e532969 100644
Binary files a/docs/articles/models-from-program_files/figure-html/bricks_6-1.png and b/docs/articles/models-from-program_files/figure-html/bricks_6-1.png differ
diff --git a/docs/articles/models-from-program_files/figure-html/bricks_7-1.png b/docs/articles/models-from-program_files/figure-html/bricks_7-1.png
index 7fb9c15..8e8b942 100644
Binary files a/docs/articles/models-from-program_files/figure-html/bricks_7-1.png and b/docs/articles/models-from-program_files/figure-html/bricks_7-1.png differ
diff --git a/docs/articles/models-from-program_files/figure-html/bricks_8-1.png b/docs/articles/models-from-program_files/figure-html/bricks_8-1.png
index e0ab673..8595347 100644
Binary files a/docs/articles/models-from-program_files/figure-html/bricks_8-1.png and b/docs/articles/models-from-program_files/figure-html/bricks_8-1.png differ
diff --git a/docs/articles/models-from-program_files/figure-html/bricks_9-1.png b/docs/articles/models-from-program_files/figure-html/bricks_9-1.png
index 52468d2..c8a62be 100644
Binary files a/docs/articles/models-from-program_files/figure-html/bricks_9-1.png and b/docs/articles/models-from-program_files/figure-html/bricks_9-1.png differ
diff --git a/docs/articles/models-from-tables.html b/docs/articles/models-from-tables.html
index 1b1af88..6628d6f 100644
--- a/docs/articles/models-from-tables.html
+++ b/docs/articles/models-from-tables.html
@@ -138,7 +138,7 @@
build_bricks(brick_res = "hd") #Bricks available in standard def, high def, and ultra hd.
rayshader::render_snapshot( clear = TRUE)
-
+
Stack many bricks by changing the ‘Level’ value in the data frame. The script below uses purrr::map_df() to avoid copying and pasting. Changing the numeric values inside the data frame for each level creates different colors.
-
+
-
+
-
+
diff --git a/docs/articles/models-from-tables_files/figure-html/bricks_2-1.png b/docs/articles/models-from-tables_files/figure-html/bricks_2-1.png
index 78db6d0..f47ef8d 100644
Binary files a/docs/articles/models-from-tables_files/figure-html/bricks_2-1.png and b/docs/articles/models-from-tables_files/figure-html/bricks_2-1.png differ
diff --git a/docs/articles/models-from-tables_files/figure-html/bricks_5-1.png b/docs/articles/models-from-tables_files/figure-html/bricks_5-1.png
index 3d3f81c..7511620 100644
Binary files a/docs/articles/models-from-tables_files/figure-html/bricks_5-1.png and b/docs/articles/models-from-tables_files/figure-html/bricks_5-1.png differ
diff --git a/docs/articles/models-from-tables_files/figure-html/bricks_5a-1.png b/docs/articles/models-from-tables_files/figure-html/bricks_5a-1.png
index c6ee002..1b762e9 100644
Binary files a/docs/articles/models-from-tables_files/figure-html/bricks_5a-1.png and b/docs/articles/models-from-tables_files/figure-html/bricks_5a-1.png differ
diff --git a/docs/articles/mosaics.html b/docs/articles/mosaics.html
index 6571efd..32d95ba 100644
--- a/docs/articles/mosaics.html
+++ b/docs/articles/mosaics.html
@@ -118,12 +118,12 @@
image_to_mosaic()
mosaic %>% build_mosaic()
-
+
The default is to create a mosaic with 48 knobs (brick studs) on each side. Change this using the img_size input. A single value will create a square mosaic, while an array of two values represent the width and length.
-
+
-
+

+

-
+
-
+
-
+
-
+
diff --git a/docs/articles/mosaics_files/figure-html/c_custom-1.png b/docs/articles/mosaics_files/figure-html/c_custom-1.png
index 4abec76..0e628bd 100644
Binary files a/docs/articles/mosaics_files/figure-html/c_custom-1.png and b/docs/articles/mosaics_files/figure-html/c_custom-1.png differ
diff --git a/docs/articles/mosaics_files/figure-html/c_dither-1.png b/docs/articles/mosaics_files/figure-html/c_dither-1.png
index 7f18c37..0645bc0 100644
Binary files a/docs/articles/mosaics_files/figure-html/c_dither-1.png and b/docs/articles/mosaics_files/figure-html/c_dither-1.png differ
diff --git a/docs/articles/mosaics_files/figure-html/c_methods-1.png b/docs/articles/mosaics_files/figure-html/c_methods-1.png
index 0745b9e..9ff7b41 100644
Binary files a/docs/articles/mosaics_files/figure-html/c_methods-1.png and b/docs/articles/mosaics_files/figure-html/c_methods-1.png differ
diff --git a/docs/articles/mosaics_files/figure-html/c_palettes-1.png b/docs/articles/mosaics_files/figure-html/c_palettes-1.png
index 41f0929..fc7727c 100644
Binary files a/docs/articles/mosaics_files/figure-html/c_palettes-1.png and b/docs/articles/mosaics_files/figure-html/c_palettes-1.png differ
diff --git a/docs/articles/mosaics_files/figure-html/c_threed-1.png b/docs/articles/mosaics_files/figure-html/c_threed-1.png
index 758acb8..9991c6c 100644
Binary files a/docs/articles/mosaics_files/figure-html/c_threed-1.png and b/docs/articles/mosaics_files/figure-html/c_threed-1.png differ
diff --git a/docs/index.html b/docs/index.html
index 77d776e..6874801 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -106,7 +106,7 @@
-
+
In general, any {brickr} function that begins with build_ generates a graphical output from a {brickr} list object from other functions.
-
+
-
+
-
+
-
+
Both scale_fill_brick() and theme_brick() take an input ‘brick_theme’, which ensures all colors match official LEGO brick colors. See build_themes() for a sample of all available brick theme.
-
+
@@ -312,14 +312,14 @@
Instructions
Use build_instructions() to break the mosaics and 3D models into easier-to-read steps for building the set. This defaults to 6 steps, but passing any integer value will generate that many steps.
-

+

Piece list and count
Use build_pieces() to generate a graphic and count of all required plates or bricks (for stacked mosaics). These are sorted by color and size for easy purchase on LEGO.com’s Pick-a-Brick section using the advanced search option. Alternatively, use table_pieces() to produce a data frame table of all required bricks.
-

+

diff --git a/docs/index_files/figure-html/bricks_1-1.png b/docs/index_files/figure-html/bricks_1-1.png
index 900381d..c2db9d1 100644
Binary files a/docs/index_files/figure-html/bricks_1-1.png and b/docs/index_files/figure-html/bricks_1-1.png differ
diff --git a/docs/index_files/figure-html/bricks_5-1.png b/docs/index_files/figure-html/bricks_5-1.png
index f81f44b..9383781 100644
Binary files a/docs/index_files/figure-html/bricks_5-1.png and b/docs/index_files/figure-html/bricks_5-1.png differ
diff --git a/docs/index_files/figure-html/bricks_6-1.png b/docs/index_files/figure-html/bricks_6-1.png
index 06b9873..79541c3 100644
Binary files a/docs/index_files/figure-html/bricks_6-1.png and b/docs/index_files/figure-html/bricks_6-1.png differ
diff --git a/docs/index_files/figure-html/geom_brick-1.png b/docs/index_files/figure-html/geom_brick-1.png
index ca7d8b5..b305eba 100644
Binary files a/docs/index_files/figure-html/geom_brick-1.png and b/docs/index_files/figure-html/geom_brick-1.png differ
diff --git a/docs/index_files/figure-html/geom_brick2-1.png b/docs/index_files/figure-html/geom_brick2-1.png
index 1c5748e..39ab8c5 100644
Binary files a/docs/index_files/figure-html/geom_brick2-1.png and b/docs/index_files/figure-html/geom_brick2-1.png differ
diff --git a/docs/index_files/figure-html/m1_instructions-1.png b/docs/index_files/figure-html/m1_instructions-1.png
index dcd71aa..7e0c006 100644
Binary files a/docs/index_files/figure-html/m1_instructions-1.png and b/docs/index_files/figure-html/m1_instructions-1.png differ
diff --git a/docs/index_files/figure-html/m1_pieces-1.png b/docs/index_files/figure-html/m1_pieces-1.png
index b3cf86c..8fe0be3 100644
Binary files a/docs/index_files/figure-html/m1_pieces-1.png and b/docs/index_files/figure-html/m1_pieces-1.png differ
diff --git a/docs/news/index.html b/docs/news/index.html
index d022695..561133f 100644
--- a/docs/news/index.html
+++ b/docs/news/index.html
@@ -196,13 +196,14 @@
TO DO
diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml
index ccdc568..d445286 100644
--- a/docs/pkgdown.yml
+++ b/docs/pkgdown.yml
@@ -1,12 +1,12 @@
-pandoc: '2.6'
+pandoc: '2.7'
pkgdown: 1.3.0
pkgdown_sha: ~
articles:
- graphs: ../../../../Onedrive - LEGO/Documents/brickr/vignettes/graphs.html
- models-from-other: ../../../../Onedrive - LEGO/Documents/brickr/vignettes/models-from-other.html
- models-from-program: ../../../../Onedrive - LEGO/Documents/brickr/vignettes/models-from-program.html
- models-from-tables: ../../../../Onedrive - LEGO/Documents/brickr/vignettes/models-from-tables.html
- mosaics: ../../../../Onedrive - LEGO/Documents/brickr/vignettes/mosaics.html
+ graphs: graphs.html
+ models-from-other: models-from-other.html
+ models-from-program: models-from-program.html
+ models-from-tables: models-from-tables.html
+ mosaics: mosaics.html
urls:
reference: http://brickr.org/reference
article: http://brickr.org/articles
diff --git a/docs/reference/build_colors-1.png b/docs/reference/build_colors-1.png
index 3398800..c21a75e 100644
Binary files a/docs/reference/build_colors-1.png and b/docs/reference/build_colors-1.png differ
diff --git a/docs/reference/build_themes-1.png b/docs/reference/build_themes-1.png
index 0825aff..8431c37 100644
Binary files a/docs/reference/build_themes-1.png and b/docs/reference/build_themes-1.png differ
diff --git a/docs/reference/build_themes-2.png b/docs/reference/build_themes-2.png
index 18bb6c9..a04a997 100644
Binary files a/docs/reference/build_themes-2.png and b/docs/reference/build_themes-2.png differ
diff --git a/docs/reference/coord-brick-1.png b/docs/reference/coord-brick-1.png
index 2b713aa..ac4e881 100644
Binary files a/docs/reference/coord-brick-1.png and b/docs/reference/coord-brick-1.png differ
diff --git a/docs/reference/coord-brick-2.png b/docs/reference/coord-brick-2.png
index 42d28f7..58a6f93 100644
Binary files a/docs/reference/coord-brick-2.png and b/docs/reference/coord-brick-2.png differ
diff --git a/docs/reference/geom_brick_col-1.png b/docs/reference/geom_brick_col-1.png
index 6fff663..bdb594c 100644
Binary files a/docs/reference/geom_brick_col-1.png and b/docs/reference/geom_brick_col-1.png differ
diff --git a/docs/reference/geom_brick_col-2.png b/docs/reference/geom_brick_col-2.png
index 561299a..5ac2e20 100644
Binary files a/docs/reference/geom_brick_col-2.png and b/docs/reference/geom_brick_col-2.png differ
diff --git a/docs/reference/geom_brick_col.html b/docs/reference/geom_brick_col.html
index d21e240..9a87df0 100644
--- a/docs/reference/geom_brick_col.html
+++ b/docs/reference/geom_brick_col.html
@@ -174,7 +174,8 @@ data. All objects will be fortified to produce a data frame. See
fortify() for which variables will be created.
A function will be called with a single argument,
the plot data. The return value must be a data.frame, and
-will be used as the layer data.
+will be used as the layer data. A function can be created
+from a formula (e.g. ~ head(.x, 10)).
| position |
diff --git a/docs/reference/geom_brick_rect.html b/docs/reference/geom_brick_rect.html
index daf2f50..b9d7ff7 100644
--- a/docs/reference/geom_brick_rect.html
+++ b/docs/reference/geom_brick_rect.html
@@ -173,7 +173,8 @@ data. All objects will be fortified to produce a data frame. See
fortify() for which variables will be created.
A function will be called with a single argument,
the plot data. The return value must be a data.frame, and
-will be used as the layer data.
+will be used as the layer data. A function can be created
+from a formula (e.g. ~ head(.x, 10)).
| stat |
@@ -208,6 +209,10 @@ to the paired geom/stat.
use_bricks |
Array of brick sizes to use in mosaic. Defaults to c('4x2', '2x2', '3x1', '2x1', '1x1')`. |
+
+ | linejoin |
+ Line join style (round, mitre, bevel). |
+
| na.rm |
If FALSE, the default, missing values are removed with
diff --git a/docs/reference/scale_fill_brick-1.png b/docs/reference/scale_fill_brick-1.png
index d371e1f..e1f93f2 100644
Binary files a/docs/reference/scale_fill_brick-1.png and b/docs/reference/scale_fill_brick-1.png differ
diff --git a/docs/reference/scale_fill_brick-2.png b/docs/reference/scale_fill_brick-2.png
index b3f9234..bbe5e77 100644
Binary files a/docs/reference/scale_fill_brick-2.png and b/docs/reference/scale_fill_brick-2.png differ
diff --git a/man/geom_brick_col.Rd b/man/geom_brick_col.Rd
index c20f3dc..df696eb 100644
--- a/man/geom_brick_col.Rd
+++ b/man/geom_brick_col.Rd
@@ -27,7 +27,8 @@ data. All objects will be fortified to produce a data frame. See
A \code{function} will be called with a single argument,
the plot data. The return value must be a \code{data.frame}, and
-will be used as the layer data.}
+will be used as the layer data. A \code{function} can be created
+from a \code{formula} (e.g. \code{~ head(.x, 10)}).}
\item{position}{It it not recommended to use \code{position = "stack"}.}
diff --git a/man/geom_brick_rect.Rd b/man/geom_brick_rect.Rd
index 5fbe530..b485494 100644
--- a/man/geom_brick_rect.Rd
+++ b/man/geom_brick_rect.Rd
@@ -28,7 +28,8 @@ data. All objects will be fortified to produce a data frame. See
A \code{function} will be called with a single argument,
the plot data. The return value must be a \code{data.frame}, and
-will be used as the layer data.}
+will be used as the layer data. A \code{function} can be created
+from a \code{formula} (e.g. \code{~ head(.x, 10)}).}
\item{stat}{The statistical transformation to use on the data for this
layer, as a string.}
@@ -49,6 +50,8 @@ to the paired geom/stat.}
\item{use_bricks}{Array of brick sizes to use in mosaic. Defaults to \code{c('4x2', '2x2', '3x1', '2x1', '1x1')}`.}
+\item{linejoin}{Line join style (round, mitre, bevel).}
+
\item{na.rm}{If \code{FALSE}, the default, missing values are removed with
a warning. If \code{TRUE}, missing values are silently removed.}
|