patternBasics | R Documentation |
Functions to draw a small square in a pattern step by step.
blankPattern(x0, x1, y0, y1, border = "black", background = "white", ...) addLineToPattern(pattern, x0, x1, y0, y1, colour) addPolygonToPattern(pattern, x, y, border, colour)
x0, x1, y0, y1 |
co-ordinates for the top, bottom, left and right of the square. |
border |
colour for border lines. see details. |
background |
the background colour for the square. |
... |
parameters passed to component(). |
pattern |
a pattern to add a line or polygon to. |
colour |
the colour of a line added to the pattern. |
x, y |
co-ordinates for a line added to the pattern. |
blankPattern creates a component with a single square, and the other functions add details.
Other patterns:
checkPatterns
,
makePatternBlock()
,
patternNames()
,
squarePatterns
,
stripePatterns
,
trianglePatterns
print(1+1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.