GithubHelp home page GithubHelp logo

growthcharts / chartbox Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 105.36 MB

Collection of Dutch Growth Charts

Home Page: https://growthcharts.org/chartbox/

License: Other

R 100.00%
growth-curves growth-charts anthropometry growth-standards dutch james-server

chartbox's Introduction

chartbox

R-CMD-check R-CMD-check

The chartbox package stores empty Dutch growth charts. With the package you can

  • list the available growth charts;
  • set the color palette;
  • load one of the growth charts for further processing.

Installation

The following statements will install the chartbox package

install.packages("remotes")
remotes::install_github("growthcharts/chartbox")

Example

The load_chart() function makes the stored growth charts available for further processing. Here’s an example that writes chart PJAAN25 to a PDF file.

library(chartbox)

# choose and load chart
chartcode <- "PJAAN25"
g <- load_chart(chartcode)

# set the correct color palette
pop <- chartcatalog::parse_chartcode(chartcode)$population
old_pal <- palette(palettes[pop, ])

# create the pdf
pdf(paste(chartcode, "pdf", sep = "."), height = 29.7/2.54, width = 21/2.54)
grid::grid.draw(g)
dev.off()
#> quartz_off_screen 
#>                 2

# restore palette
palette(old_pal)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.