I think this only works when you already have a Chinese OS. Huang
On Fri, Oct 12, 2012 at 11:01 AM, Jinsong Zhao <jsz...@yeah.net> wrote: > On 2012-10-12 10:16, Manish Gupta wrote: > >> Hi, >> >> I am working on Chinese language plot. >> >> But names and labels are in chinese language. How can i print chineese >> characters as lable in R plot. >> >> >> Ãû³Æ Àà ѧÉú >> ľ²Ä 2 2 >> ±í 3 4 >> ±Ê 4 2 >> À¬»øÍ° 5 6 >> ± 6 3 >> >> like we can do in excel as shown below in image. >> <http://r.789695.n4.nabble.**com/file/n4645950/Screenshot.**png<http://r.789695.n4.nabble.com/file/n4645950/Screenshot.png> >> > >> >> Regards >> >> > 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 > > > ______________________________**________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/**listinfo/r-help<https://stat.ethz.ch/mailman/listinfo/r-help> > PLEASE do read the posting guide http://www.R-project.org/** > posting-guide.html <http://www.R-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.