Package ggguitar on CRAN

By C

(This article was first published on R-Chart, and kindly contributed to R-bloggers)

The initial release of ggguitar is available on CRAN! This package allows you to create guitar tablature in the style of ggplot2. As a quick example, the C Major chord shown above can be created as follows.

library(ggguitar)
C_M ->
tablature(‘C Major’, C_M)

The tablature function takes the name of the chord for the first argument and a six element vector representing the six strings of the guitar. An NA indicates a string that is not played, zero represents an open string, and a number indicates a fret where a finger is to be placed on the specified string.

The “String” and “Fret” labels and corresponding axis ticks are optional.

tablature(‘C Major’, C_M, FALSE, FALSE)

See the package at CRAN, the vignette, or the code at Github for more information.

To leave a comment for the author, please follow the link and comment on their blog: R-Chart.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more…

Source:: R News

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.