Plot Emojis/Emoticons in R with Ggplot

Using emojis/emoticons in DocPad

Instead of going for a parser I went for a CSS/JS solution to emoticons: https://github.com/JangoSteve/jQuery-CSSEmoticons

Genius concept. :)

problems with Hmisc-labelled objects in ggplot

Remove the labels for plotting:

library(Hmisc)

DF <- data.frame(x=factor(rep(1:2,5)),y=1:10)

label(DF$x)="xLab"
label(DF$y)="yLab"

library(ggplot2)

ggplot(DF,aes(x=x,y=y)) + geom_boxplot()
#Don't know how to automatically pick scale for object of type labelled. Defaulting to continuous

ggplot(DF,aes(x=factor(unclass(x)),y=unclass(y))) + geom_boxplot()
#no warning

Unfortunately you don't give the details necessary to reproduce your error and give a customized solution.

Change font in network plot

Run par(font=2) before plotting, and you'll get bold labels. par(font=1) to go back to plain text. See ?par for more on graphical parameters.



Related Topics



Leave a reply



Submit