Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add visual tests for all libraries #14

Open
ramnathv opened this issue Apr 19, 2013 · 0 comments
Open

Add visual tests for all libraries #14

ramnathv opened this issue Apr 19, 2013 · 0 comments
Labels

Comments

@ramnathv
Copy link
Owner

Right now I have examples.R which tests different type of charts. However, I need to do this more systematically with a test suite that tests different aspects. Here is an example for MorrisJS

dat = subset(haireye, Sex == "Female")

## test that labels default to group names when not provided
p2 <- mPlot(Freq ~ Eye, group = "Hair", data = dat, type = "Bar")
p2$show(T)

## test that label argument is respected when explicitly provided
p3 <- mPlot(Freq ~ Eye, group = "Hair", data = dat, type = "Bar", 
  labels = letters[1:4])
p3$show(T)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant