tests/testthat/test-assess.R

install.packages("devtools")
library("devtools")
install_github("neuropsychology/neuropsychology.R", dependencies=TRUE)
library(neuropsychology)


figure <- assess(87, mean=100, sd=15)
figure2 <- assess(score=27, distribution=personality$Age, colour.fill="grey", colour.line="black")

ggsave("assess_plot.png", figure, dpi=600,
       width=8, height=4.5)
ggsave("assess_plot2.png", figure2, dpi=600,
       width=8, height=4.5)
# ggsave("mafigure.png", assess(87, mean=100, sd=15, language="fr", colour.line="black", colour.fill="gray"))
library(ggplot2)
?ggsave

Try the neuropsychology package in your browser

Any scripts or data that you put into this service are public.

neuropsychology documentation built on May 2, 2019, 2:13 p.m.