mirror of
https://github.com/ryantimpe/brickr.git
synced 2026-05-07 20:09:48 -05:00
Dithering, but only looks good for big, photo-realistic mosaics
This commit is contained in:
+3
-3
@@ -32,7 +32,7 @@ The package is divided into 3 separate systems:
|
||||
|
||||
brickr also includes tools help users create the Mosaics and 3D model output using real LEGO® elements.
|
||||
|
||||
*brickr is developed using publicly available information about LEGO® products and is not officially affliated with The LEGO Group*
|
||||
*brickr is developed using publicly available information about LEGO® products and is not officially affiliated with The LEGO Group*
|
||||
|
||||
## Installation
|
||||
``` r
|
||||
@@ -74,7 +74,7 @@ The `bricks_from_*` series of functions creates 3D models of LEGO bricks from a
|
||||
|
||||
- `bricks_from_table()` & `bricks_from_excel()` convert a matrix-shaped table of integers into LEGO bricks. For simple models, this table can be made manually using `data.frame()` or `tibble::tribble()`. For more advanced models, it's recommended you use MS Excel or a .csv file. The left-most column in the table is associated with the Level or z-axis of the model. `bricks_from_excel()` is a wrapper function to more easily build models designed using a Microsoft Excel template. Please see this repo: [brickr toybox](https://github.com/ryantimpe/brickr_toybox).
|
||||
|
||||
- `bricks_from_coords()` takes a data frame with `x`, `y`, & `z` integer values, and `Color` columns, where each combination of x, y, & z is a point in 3-dimensional space. Color must be an official LEGO color name from `build_colors()`. This format is much more flexible than `bricks_from_table()` and allows the programatic development of 3D models.
|
||||
- `bricks_from_coords()` takes a data frame with `x`, `y`, & `z` integer values, and `Color` columns, where each combination of x, y, & z is a point in 3-dimensional space. Color must be an official LEGO color name from `build_colors()`. This format is much more flexible than `bricks_from_table()` and allows the programmatic development of 3D models.
|
||||
|
||||
-`bricks_from_mosaic()` & `bricks_from_image()` convert a 2D [mosaic](#mosaics) object or an image into 3D LEGO models, respectively.
|
||||
|
||||
@@ -203,7 +203,7 @@ ggplot(df, aes(trt, outcome)) +
|
||||
|
||||
```
|
||||
|
||||
Both `scale_fill_brick()` and `theme_brick()` take an input 'brick_theme', which ensures all colors match offical LEGO brick colors. See `build_themes()` for a sample of all available brick theme.
|
||||
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.
|
||||
|
||||
```{r geom_brick2, echo=TRUE, warning=FALSE, message=FALSE, fig.width=4, fig.height=4}
|
||||
df <- data.frame(trt = letters[1:6], outcome = rnorm(6, mean = 5, sd = 2))
|
||||
|
||||
Reference in New Issue
Block a user