You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.
(Using 0.5.1)
I've just come across an issue using ly_abline together with x_range when plotting a discrete axis.
Plotting an abline (using h or v) works fine when x_range is not called, but when I add in x_range in order to set the order, only a small section of the horizontal abline gets plotted (i.e. it no longer traverses the entire width of the plot). I've seen the issue with ly_bar and ly_points plots and it affects both x_range and y_range.
Reproducible example:
#Set up data frame
set.seed(2)
test_frame <- data.frame("factor_x"=sample(letters,10),"data_x"=sample(10:30,10))
#This works fine..
figure(test_frame) %>% ly_bar(x=factor_x,y=data_x) %>% ly_abline(h=15)
#..but when x_range is added, the issue appears
figure(test_frame) %>% ly_bar(x=factor_x,y=data_x) %>% ly_abline(h=15) %>% x_range(test_frame$factor_x)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
(Using 0.5.1)
I've just come across an issue using
ly_abline
together withx_range
when plotting a discrete axis.Plotting an abline (using
h
orv
) works fine whenx_range
is not called, but when I add inx_range
in order to set the order, only a small section of the horizontal abline gets plotted (i.e. it no longer traverses the entire width of the plot). I've seen the issue withly_bar
andly_points
plots and it affects bothx_range
andy_range
.Reproducible example:
The text was updated successfully, but these errors were encountered: