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

Set intervals on the y-axis #40

Open
vince-p opened this issue May 31, 2017 · 1 comment
Open

Set intervals on the y-axis #40

vince-p opened this issue May 31, 2017 · 1 comment

Comments

@vince-p
Copy link

vince-p commented May 31, 2017

Is there a way to specify the intervals for the y-axis of a pirate plot?
My data has values from 1 to 5, but the y-axis includes values for 1.5, 2.5 etc.
Is there a way to get it to only show integers on the y-axis?

@ndphillips
Copy link
Owner

Hmmm, currently there is not. But you can turn off the axis yourself and add a custom axis later with axis.

E.g.

# Create the plot and turn off the yaxis with yaxt = "n"
yarrr::pirateplot(weight ~ Diet, data = ChickWeight, yaxt = "n")

#Add a custom axis
axis(2, at = seq(from = 0, to = 1000, by = 100))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants