Skip to content
Prev 307748 / 398503 Next

How to handle Chinese character in R plot?

On 2012-10-12 10:16, Manish Gupta wrote:
try the following code:

x <- read.csv(textConnection("
??,?,??
??,2,2
?,3,4
?,4,2
???,5,6
?,6,3"), header = TRUE)
rownames(x) <- x[,1]
x <- x[,-1]
barplot(t(x), horiz = TRUE, beside = TRUE, legend.text = TRUE)

HIH,

Regards,
Jinsong