No articles match
Other {gridpattern} Patterns2 days ago
Introduction | Data | Pattern 'aRtsy' | Pattern 'fill' | Pattern 'hatch' | Pattern 'line' | Pattern 'none' | Pattern 'text'
Patterns 'stripe', 'wave', 'crosshatch', 'weave' - Parameters and Examples2 days ago
Introduction to the 'stripe', 'wave', 'crosshatch', and 'weave' patterns | Pattern Parameters | Data | Vanilla ggplot2 | Use the {ggpattern} geom | Mixing patterns | The Density Aesthetic | Weave types | The Density Aesthetic as a Mapped Aesthetic | The Density Aesthetic as a Mapped Aesthetic with Manual Scale | The Spacing Aesthetic as a Mapped Aesthetic | The Fill Aesthetic as a Mapped Aesthetic
Triangles1 months ago
Demo setup | Render triangles with nr_polygon() | Render triangles with nr_tri_mesh() | Render triangles with nr_tri_coords()
Using Masks1 months ago
Blitting1 months ago
nr_blit() | Blit a single image | Blit a single image to multiple locations | Blit a single image to multiple locations with varying angles and scales | nr_blit_multi() | Blit with a mask
Animation2 months ago
Render to a video file | Render to a fast graphics device
Technical Notes2 months ago
What is a native raster image and why is it fast? | In-place operation | Anti-aliasing/Interpolation | Dimension ordering | Coordinate System
Convert images to/from native raster image format2 months ago
Create a native raster image | Save/Load native raster images to/from PNG and JPEG | Convert a regular R raster image to/from native raster image format | Convert a regular R array image to/from native raster image format
Isometric Grids10 months ago
Placing a voxel letter on a ground plane
Generate Voxels10 months ago
Evaluate a function to find voxels | Fractal Terrain with ambient | Evaluate the isosurface of an implicit function | Heightmap from scanned depth data
Heightmaps10 months ago
Add color to each location
Animated Isosurface10 months ago
Define the isosurface | Animated rendering
Examples10 months ago
Hello World! | Vectorised arguments | Multiple circles with per-element graphical parameters | Beziers
Configuration Options for Parsing from JSON1 years ago
Overview | The opts argument - Specifying options when reading JSON | Setting arguments to override the default options | Option promote_num_to_string - mixtures of numeric and string types | Option df_missing_list_elem - Missing list elements (when parsing data.frames) | JSON to data.frame (no list columns needed) | JSON to data.frame - list-columns required | Option obj_of_arrs_to_df - Reading JSON as a data.frame | Option arr_of_objs_to_df - Reading JSON as a data.frame | Option str_specials - Reading string "NA" from JSON | Option num_specials - Reading numeric "NA", "NaN" and "Inf" | Option int64 - large integer support | Option length1_array_asis - distinguishing scalars from length-1 vectors | Option yyjson_read_flag - internal YYJSON C library options
Configuration Options for Serializing to JSON1 years ago
Overview | The opts argument - Specifying options when reading JSON | Setting arguments to override the default options | Option digits - Number of decimal places for numeric values | Option pretty - Use whitespace to make the JSON pretty | Option auto_unbox - Handling for R vectors of length 1 | Option dataframe - Orientation of data.frame output | Option factor - factor representation | Option name_repair - Dealing with missing names in lists | Option num_specials - Writing numeric NA, NaN and Inf | Option str_specials - Writing character NA | Option yyjson_write_flag - internal YYJSON C library options
Dictionaries1 years ago
Overview | Create some data | Train a dictionary using zstd | Read the dictionary and use with lz4_serialize()/lz4_unserialize() | Test the effect of a dictionary for a new message
Patterns 'image' and 'placeholder' - Parameters and Examples1 years ago
Introduction to the 'image and 'placeholder' patterns | The image pattern - filling a geom with an image from file or URL | image options | Example Data | Example: pattern = 'image' - No Attempt at filling the area (pattern_type = 'none') | Example: pattern = 'image' - Covering the area (pattern_type = 'fit', 'squish', 'expand') | Example: pattern = 'image' - Tiling (pattern_type = 'tile') | Example: pattern = 'image' - Tiling with seamless patterns | Example: pattern = 'image' - Tiling with seamless patterns (with scaling) | Example: pattern = 'image' - Tiling with fit to width (of element bounding box) | placeholder - Filling with an image placeholder | placeholder options | placeholder option pattern_type | Example: pattern = 'placeholder' - pattern_type = 'bear' | Example: pattern = 'placeholder' - pattern_type = 'picsum' | Example: pattern = 'placeholder' - pattern_type = 'dummy' | Resetting the image cache
introduction1 years ago
satire | What's in the box | SAT Solvers | SAT Example: Finding all possible work teams | Problem statement | Tools for defining a problem | Cardinality helpers | Unsatisfiable problem example | Solving a problem from a DIMACs file
Peaceable Queens1 years ago
The Peaceable Queens Puzzle | Nomenclature | Individual squares | Row variables | Basic pieces in R | Boolean Expressions | Expressions constraining the row/column indicator variables (for white) | Expressions constraining the row/column indicator variables (for black) | Exclusivity of white/black indicator variables | Expressions constraining the diagonals | Creating the SAT problem in
Peaceable Queens1 years ago
The Peaceable Queens Puzzle | Nomenclature | Individual squares | Row variables | Basic pieces in R | Boolean Expressions | Expressions constraining the row/column indicator variables (for white) | Expressions constraining the row/column indicator variables (for black) | Exclusivity of white/black indicator variables | Expressions constraining the diagonals | Creating the SAT problem in
Peaceable Queens1 years ago
The Peaceable Queens Puzzle | Nomenclature | Individual squares | Row variables | Basic pieces in R | Boolean Expressions | Expressions constraining the row/column indicator variables (for white) | Expressions constraining the row/column indicator variables (for black) | Exclusivity of white/black indicator variables | Expressions constraining the diagonals | Creating the SAT problem in | Solving | Solving with an external solver | DIMACS export
N queens puzzle1 years ago
The N-queens puzzle | The 4-queens puzzle | What constraints exist? | Defining the problem | Solve | Plot solution #1 | Plot solution #2
Sudoku1 years ago
Solving a 4x4 sudoku with SAT | Nomenclature | Constraints | Defining a SAT problem - building blocks | Building block: at least one of a set of variables must be true. | Building block: at most one of a set of variables must be true | Building block: exactly one of a set of variables must be true | Defining the SAT problem with | Solving
Encrypting with Additional Data1 years ago
Additional data | Worked example
Encryption Keys1 years ago
Use a password as the key | Generate a key using Argon2 Key Derivation Function | Use raw bytes as the key | Use hexadecimal string as a key
Patterns 'gradient', 'ambient', 'plasma' - Parameters and Examples1 years ago
Introduction to the 'gradient', 'ambient', and 'plasma' patterns | Pattern Parameters | Example Data | Example: pattern = 'plasma' - With pattern_alpha | Example: pattern_type = 'gradient' - Fade to white | Example: pattern_type = 'gradient' - Fade to dark blue | Example: pattern_type = 'gradient' - Fade to transparent | Example: pattern_type = 'gradient' - Non-rectangular geom | Example: `pattern_type = 'ambient'
C API1 years ago
String color to vector of RGBA values | String color to packed integer color | Packed integer color to hexadecimal color
Overview1 years ago
What's in the box | Read/Write with a raw vector | Reading/Write with a connection | Read/write unsigned integers at varying bit depths | Read/write integers with Exponential-Golomb coding
Animating Patterns with gganimate2 years ago
Using gganimate with ggpattern
Developing Patterns2 years ago
Developing Patterns - overview | Table of Contents | Pattern Classification - geometry-based and array-based | {ggpattern} Aesthetics - Descriptions and Defaults | Geometry-based pattern functions - Formal Arguments and Return Values | Array-based pattern functions - Formal Arguments and Return Values | The polygon_df data.frame format | Associating a function with {gridpattern} pattern name | Example: Three-color polygon tilings (adapting {ggplot2} aesthetics) | Other examples
Geom Gallery - Array-based Patterns2 years ago
geom_bar_pattern() | geom_bar_pattern() - fit image to width and tile. | geom_bar_pattern() + coord_flip and fit image to height and graivty towards the east. | pie graph with geom_bar_pattern() | geom_bin2d_pattern() | geom_col_pattern() | geom_crossbar_pattern() | geom_density_pattern() | geom_map_pattern() | geom_polygon_pattern() | geom_rect_pattern() | geom_ribbon_pattern() | geom_sf_pattern() | geom_tile_pattern() | geom_violin_pattern()
Geom Gallery - Geometry-based Patterns2 years ago
B&W Example | Colour Example | geom_bar_pattern() | pie graph with geom_bar_pattern() | geom_bin2d_pattern() | geom_boxplot_pattern() | geom_col_pattern() | geom_crossbar_pattern() | geom_density_pattern() | geom_map_pattern() | geom_polygon_pattern() | geom_rect_pattern() | geom_tile_pattern() | geom_violin_pattern()
Parameters for Geometry-based Patterns2 years ago
Geometry-based patterns | pattern_density | pattern_spacing | pattern_angle
Patterns 'circle', 'pch', 'regular_polygon', 'rose' - Parameters and Examples2 years ago
Introduction to the 'circle', 'pch', 'regular_polygon', and 'rose' patterns | Pattern Parameters | Data | Vanilla ggplot2 | Use the {ggpattern} geom | The Density Aesthetic ('pch' example) | The Density Aesthetic as a Mapped Aesthetic | The Density Aesthetic as a Mapped Aesthetic with Manual Scale | The Spacing Aesthetic as a Mapped Aesthetic | The Fill Aesthetic as a Mapped Aesthetic ('rose' example)
Patterns 'magick' and 'polygon_tiling' - Parameters and Examples2 years ago
Introduction to the 'magick' and 'polygon_tiling' patterns | pattern = 'magick' - filling a geom with pattern from imagemagick | pattern = 'magick' options | pattern = 'magick' - pattern_type options | Example: pattern = 'magick' - Transparent patterns | Example: pattern = 'magick' - Pie chart | pattern = 'polygon_tiling' - filling a geom with a polygon tiling | Pattern Parameters | pattern = 'polygon_tiling' - pattern_type options | pattern = 'polygon_tiling' - Bar chart
Example: fast convolution2 years ago
References2 years ago
Introduction | R copy-on-modify | Modification in-place
Unicode Support2 years ago
Unicode support | Font overview | Rendering with unifont | Default character | Codepoints supported by each font
Using bitmap fonts2 years ago
Bitmap font: included fonts | Bitmap font functions | Bitmap font: Rendering text | Bitmap font: Bespoke pixel rendering
Using vector fonts2 years ago
Vector Fonts: included fonts | Vector font: functions | Vector font: Rendering text | Vector font: Bespoke pixel rendering
Fontsheets for bitmap fonts2 years ago
Fontsheets for vector fonts2 years ago
Tone Mapping2 years ago
HDR images | Example image | Tone-map by clamping | Tone-map by linear rescaling | Tone-map with Reinhard's technique | Tone-map with Reinhard's technique (extended) | Tone-map with Reinhard's technique (variant)
Introduction2 years ago
Read and display a PFM image | Read and display an EXR image | Display a non-colour channel | EXR metadata | EXR Implementation Notes
Handcrafting a WAV file2 years ago
WAV files | WAV file structure | Audio waveform | Write the WAV file | Play the audio | Parsing a WAV file | ctypesio is pipe-friendly
Parsing JPEG Markers2 years ago
JPEG Overview | JPEG markers | Example JPEG file | What does the binary data in the JPEG look like? | Process all chcunks
Overview2 years ago
Features | Supported image data in R | Supported PNG image types | Comparison to standard {png} library | Compression Settings: Speed / size tradeoff | Example: Read a PNG into R | Read as a raster (of hex colours) | Read as a numeric array | Read as an integer array | Read as a native raster | Write an image to PNG with/without compression | Write integer matrix as indexed PNG
Overview2 years ago
Running a loop at a rate of 30 times/second | Skipping frames | Setting timers
Accessing 3rd-Party Libraries2 years ago
Introduction | Example: Linking to zlib | Possible variations
Calling R from C2 years ago
Introduction | lang1() - Calling an R function with no arguments | lang2() - Calling an R function with a single unnamed argument | lang2() - Calling an R function with a single named argument | Using allocLang() (R >= 4.4.1 only)
Checking for Interrupts2 years ago
Introduction | R_CheckUserInterrupt() example | Continuing C execution after the interrupt
Creating a data.frame in C2 years ago
Introduction | Example: Create a data.frame in C
External pointers to C objects2 years ago
Introduction | Wrapping a C struct as an External Pointer
Introduction2 years ago
Code Layout in Vignettes | Example: Add two vectors of floating point numbers | Elements to note in the example | Function signature | Sanity checking | Unpack R objects into C equivalents | Allocte new R objects within C | Return object from C to R
SEXP objects2 years ago
Listing of all SEXP types | Code example: Print the SEXP type of an object
Technical Notes2 years ago
General Technical Notes | File structure | Included Cryptographic Libraries
Rain in Sydney2 years ago
Average monthly rainfall during the period 1960 - 2023 | Floods in NSW | Highlight months with above average rainfall and mark years in which flooding occurred
svg-animation2 years ago
Example - Challenger O-Ring Failure2 years ago
Challenger O-Ring data | Ordering by temperature | First Iteration with | Second Iteration with
Specifying Colours2 years ago
Specify a single colour | Specify a vector of colours | Specify a colour scale to apply to a variable | Specify a colour scale to apply to a variable, and apply the colouring to multiple columns | Specify a colour scale to apply to multiple variables independently | Specify a colour scale to apply to multiple variables as a whole
Specifying Columns2 years ago
Select all cols | Select cols by index | Select cols by name | Select cols by rowname symbol | Select cols using col_number() | Select cols using selectors like tidyselect
Specifying Rows2 years ago
Select all rows | Select rows by index | Select rows by name | Select rows by rowname symbol | Select rows by expression | Select rows using n() and row_number() | Select rows using selectors like tidyselect
Quick Start - Data Frames2 years ago
Goal | Step 1: mtcars | Step 2: Use | Step 3: Highlight only rows where cylinder is 6 or 8 | Step 4: Shade by mpg rating using ggplot2::scale_colour_viridis_c() | Step 5: Extend shading across all rows except gear and carb | Step 6: Highlight the maximum mpg | Step 7: De-emphasise the text
Dictionaries2 years ago
Dictionary-based compression | Why should I use a dictionary? | When is a dictionary useful? | How do I train a dictionary? | How large should my dictionary be? | How many samples should I provide to the dictionary builder? | How do I determine if a dictionary will be effective? | When should I retrain a dictionary? | Example
Comparison to jsonlite parsing2 years ago
Parsing differences compared to | In yyjsonr 3-d arrays are parsed as multiple 2-d matrices and combined
css-aesthetics4 years ago
Introduction | Styling SVG with CSS Aesthetics (Example 3)
custom-aesthetics-glue-strings4 years ago
Introduction | Test data | Mapping Aesthetics with {glue} strings | <a name="preferred"></a> Preferred naming for custom aesthetics
Hello World4 years ago
Basic 'Hello World example' | Echo the slider value to the console whenever it is changed | Echo the slider value to the console only when the button is pressed
Button Images4 years ago
Images in buttons
Idle Callback4 years ago
Run a function continually while window is valid | Video | Code
Detailed Example4 years ago
Video | Code
Fonts4 years ago
Listing all fonts on your system | Simple app | Adjust the fonts
Interactive Annotation of a ggplot4 years ago
Description | Video | Final image | Code
Julia Set Explorer4 years ago
Video | Code
Popups4 years ago
Popup Windows | Color Picker | Open/Save File | Message box
Reactive Values4 years ago
Passing values with reactive variables
Widget Layout and Packing4 years ago
Widget Layout | pack_opts() | Default | Set pack_def on container (tic_row()) | Set pack on individual widgets | Set pack_def on parent container and use pack on individual widgets to override
Widget, Canvas and Container Gallery4 years ago
Containers | Widgets | Popups | Canvas
Non-Standard Aesthetic: Rotation4 years ago
Introduction | Define the base SVG | Create parameterised SVG | Create a plot with rotating SVG arrow
Single SVG with multiple aesthetics - Mushroom plot4 years ago
Mushroom plot | Create the base SVG | Create Parameterised SVG | Create a ggsvg plot mapping 2 different quantities to the size
Using a downloaded SVG4 years ago
Using an SVG icon from the web
Multiple SVG4 years ago
Multiple different SVG | Alternate approach to multiple different SVG
S-expressions (something LISPy)5 years ago
LISPy S-Expression | Lex the S-Expression into tokens | Evaluate the expression by interpreting the tokens | Evaluate the expression by translating to R
Parsing subtitles in srt format5 years ago
SRT format example | Lex the srt file into tokens | Parse raw tokens into a data.frame
Parsing 3d objects in OBJ format5 years ago
Example parser: obj format for 3d objects | Use lex() to turn the text into tokens | Tokenising the obj | Use TokenStream to help turn the tokens into coherent data.frame
Parsing scrabble games in gcg format5 years ago
Scrabble game format: gcg | Use lex() to turn the text into tokens | Use TokenStream to help turn the tokens into coherent data.frame
Parsing PBRT rendering scene format6 years ago
PBRT format | Example Scene | Lex the text into tokens | Define some parsers for particular sequences in the stream | Parse the tokens in the 'setup' block | Parse the tokens in the 'World' block | Next steps - more parser functions!
Parsing chess game files in PGN format6 years ago
Chess game format: pgn | Use lex() to turn the text into tokens | Use TokenStream to help turn the tokens into coherent data.frame