rbokeh icon indicating copy to clipboard operation
rbokeh copied to clipboard

Certain characters in labels disrupt ly_crect (but with no error messages)

Open jrounds opened this issue 10 years ago • 0 comments

If you are wondering how in the world? Proteomics data puts non-letter characters in peptide names. Peptide names became labels to ly_crect. ly_crect failed to function. Work around for user: strip dangerous characters before calling ly_crect.

Recreatable example:

induce_bug = ""  #no bug
data = data.frame(x=letters[1:3],y=paste0(letters[1:3],induce_bug))
data
figure() %>% ly_crect(x=x,y=y,data=data)


#no colors...
induce_bug = ":"
data = data.frame(x=letters[1:3],y=paste0(letters[1:3],induce_bug))
data
figure() %>% ly_crect(x=x,y=y,data=data)

#no labels and no colors
induce_bug = ":["
data = data.frame(x=letters[1:3],y=paste0(letters[1:3],induce_bug))
data
figure() %>% ly_crect(x=x,y=y,data=data)

jrounds avatar Oct 02 '15 20:10 jrounds