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

y-axis max and min? #12

Open
ignacio82 opened this issue Aug 4, 2015 · 5 comments
Open

y-axis max and min? #12

ignacio82 opened this issue Aug 4, 2015 · 5 comments
Labels

Comments

@ignacio82
Copy link

Is there a way to set the max an min for the y-axis? For example

DF <-
  structure(
    list(
      Ranking = structure(
        1:5, .Label = c("Bottom", "Bellow Average",
                        "Average", "Above Average", "Top"), class = "factor"
      ), Prob = c(20L,
                  20L, 20L, 20L, 20L)/100
    ), .Names = c("Ranking", "Prob"), row.names = c(NA,-5L), class = "data.frame"
  )

tauchart(DF) %>% 
  tau_bar(x="Ranking", y="Prob") %>% 
  tau_guide_y(tick_format="%")

I would like the max value to be 100%

Thanks!

@timelyportfolio
Copy link
Collaborator

I do not see it documented anywhere at tauCharts, since it says autoScale will precisely follow domain. I'll file an issue to see if this is possible.

@hrbrmstr
Copy link
Owner

hrbrmstr commented Aug 5, 2015

min/max params now in tau_guide_ functions

@hrbrmstr hrbrmstr closed this as completed Aug 5, 2015
@ignacio82
Copy link
Author

works! thanks!

@abresler
Copy link

Does this still work? Some reason I am not able to control the y_axis anymore. The example above works but some don't for lines. I will try to get a reproducible one.

@hrbrmstr hrbrmstr reopened this Aug 28, 2015
@hrbrmstr
Copy link
Owner

It works in @1d10c99 and one of the only things that touches guides that was updated since then is the TauCharts library proper. Will take a look Sat PM or Sun PM (we're headed to Acadia for the weekend 😎)

@hrbrmstr hrbrmstr added the bug label Aug 28, 2015
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

4 participants