hrbrmstr/taucharts

y-axis max and min?

Opened this issue · 5 comments

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!

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.

min/max params now in tau_guide_ functions

works! thanks!

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.

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 😎)