Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Unexpected behavior with height parameter in layers_rect with numeric scale #449

Open
jrdnmdhl opened this issue Jan 9, 2016 · 0 comments

Comments

@jrdnmdhl
Copy link

jrdnmdhl commented Jan 9, 2016

Line below seems like it ought to create a rectangle with width of 10 and height of 10. Instead, it creates a rectangle with a width of greater than 10 and height of 1, at least for what is in the viewable area.
ggvis(data=data.frame(x=0,y=0,h=10,w=10),~x,~y,height=~h,width=~w) %>% layer_rects()

I have also seen some cases where the rectangles will overflow the plot area.

A workaround is to supply x2/y2 instead of width/height, but this results in different animation behavior when the sign of the height changes.
plot_975901063

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant