Change starting point, scale in ggvis for R -
i trying create line graph want change y-axis
scale goes 0 - 0.5
, 1 goes 0 - 1
. whenever use "values" argument not getting me graph wanted. current code:
lnhfbycircleper %>% ggvis(~timepoint, ~circlepercentage, stroke = ~lnhf_split) %>% layer_lines() %>% layer_paths(data = lnhfbystarper,x = ~timepoint, y = ~starpercentage, stroke = ~lnhf_split, strokedash := 6) %>% add_axis("y", title = "percentage of deck chosen") %>% add_axis("x", title = "time point", orient = "bottom")
no worries. learned done "scale_numeric("y", domain = c(range))" function.
Comments
Post a Comment