taucharts icon indicating copy to clipboard operation
taucharts copied to clipboard

y-axis max and min?

Open ignacio82 opened this issue 9 years ago • 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!

ignacio82 avatar Aug 04 '15 16:08 ignacio82

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.

timelyportfolio avatar Aug 04 '15 18:08 timelyportfolio

min/max params now in tau_guide_ functions

hrbrmstr avatar Aug 05 '15 17:08 hrbrmstr

works! thanks!

ignacio82 avatar Aug 05 '15 18:08 ignacio82

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.

abresler avatar Aug 28 '15 21:08 abresler

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 avatar Aug 28 '15 22:08 hrbrmstr