animint icon indicating copy to clipboard operation
animint copied to clipboard

returns in geom_text label

Open tdhock opened this issue 9 years ago • 1 comments

it should render as multiple lines of text (as in static ggplot2) but instead animint only renders the first line. for example

gg.return <- ggplot()+
  geom_text(aes(hjust, vjust, label=sprintf("x=%.1f\ny=%.1f", hjust, vjust)),
            data=text.df)
viz.return <- list(
  text=gg.return)
structure(viz.return, class="animint")

tdhock avatar Apr 16 '16 13:04 tdhock

it creates problematic TSV files e.g.

x   y   label   group
0.0454545454545455  0.0454545454545455  x=0.0
y=0.0   1
0.0454545454545455  0.5 x=0.0
y=0.5   1
0.0454545454545455  0.954545454545454   x=0.0
y=1.0   1
0.5 0.0454545454545455  x=0.5
y=0.0   1
0.5 0.5 x=0.5
y=0.5   1
0.5 0.954545454545454   x=0.5
y=1.0   1
0.954545454545454   0.0454545454545455  x=1.0
y=0.0   1
0.954545454545454   0.5 x=1.0
y=0.5   1
0.954545454545454   0.954545454545454   x=1.0
y=1.0   1

tdhock avatar Apr 16 '16 13:04 tdhock