backstitch_join: Join backstitch lettering into a single segment data.frame

Description Usage Arguments Value Examples

View source: R/backstitch.R

Description

Join backstitch lettering into a single segment data.frame

Usage

1
backstitch_join(x, anchor = c(0, 0), scale = 1, set = "simple")

Arguments

x

A character vector containing the lettering to use.

anchor

The x,y position of the bottom-left corner of the first letter. Default is c(0,0)

scale

Scale of the lettering. I recommend you use integer values to make stitching easier! Default is 1.

set

Backstitch set to use. Default is "simple". Use names(backstitch_segments) to see all available.

Value

A segment data.frame with x, xend, y, and yend for use with geom_segment in ggplot2

Examples

1
2
3
4
5
6
backstitch_df <- backstitch_join("Easy backstitch phrases!",
                                 anchor = c(-10, 10),
                                 scale = 2,
                                 set = "simple")

head(backstitch_df)

hypercompetent/xstitch documentation built on July 22, 2019, 10:11 p.m.