Skip to content

palderman/R-Graphics

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stick

An R package to create stickmen and stick women on a plot.

how to use this code

Installation from github requires the devtools package to be installed.

# install devtools for devtools::install_github
install.packages("devtools")
require(devtools)
# install stick package
install_github("EconometricsBySimulation/R-Graphics/Stick-Figures/stick")

This package also includes tests in testthat format. From R run the call test_package("stick").

what is this code for?

This R package contains functions for adding stickpeople to a plot.

require(stick)
set.seed(68331)
plotStick(x = runif(100), y = runif(100))

random uniform placement of stickmen

plotStick(x = 1:10, y = cos(1:10),
    hat = c("none", "shapka", "beanie", "fedora"), 
    col = rainbow(10), cex = 2)

cos placement of stickmen in hats

About

A collection of R Graphic Generating Functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published