Re: [R] Question on plotting with googleVis

2013-07-17 Thread Christofer Bogaso
Hi Arnaud, Thanks for your answer. However I prefer to have Horizontal bar chart, because length of the strings for x-axis are quite large, therefore it would be better to put them vertically one-below-another instead horizontally. Therefore I would really appreciate if someone points me how to

Re: [R] Question on plotting with googleVis

2013-07-17 Thread Arnaud Michel
Hi You can do a rotation and use gvisColumnChart instead gvisBarChart plot(gvisColumnChart(MyData, xvar="Names1", yvar=c("Values1", "Values2"),options=list(width=2500,height=1000))) Michel Le 17/07/2013 15:57, Christofer Bogaso a écrit : Hello Arnaud, Thank you for your pointer. However I nee

Re: [R] Question on plotting with googleVis

2013-07-17 Thread Christofer Bogaso
Hello Arnaud, Thank you for your pointer. However I need to more clarification. I want to control the max. and min. values for the x-axis, as well as number of vertical gridlines to be displayed. I tried the following: MyData <- data.frame(Names1 = paste("XXX", 1:150), Values1 = 1:150 + 10, Val

Re: [R] Question on plotting with googleVis

2013-07-16 Thread Greg Snow
The HTKIdentify (requires tcltk package) and HWIdentify (windows only) functions in the TeachingDemos package will show identifying information on a plot for the point being hovered over. Both functions are pure R code, so if they don't work for you as is you can modify the source to make whatever

Re: [R] Question on plotting with googleVis

2013-07-16 Thread Arnaud Michel
You can try with list options : plot(gvisBarChart(MyData, xvar="Names1", yvar=c("Values1", "Values2"), options=list(width=1200,height=1500))) Le 15/07/2013 20:00, Christofer Bogaso a écrit : Hello again, Let say I have following data-frame: MyData <- data.frame(Names1 = paste("XXX", 1:150),

[R] Question on plotting with googleVis

2013-07-15 Thread Christofer Bogaso
Hello again, Let say I have following data-frame: MyData <- data.frame(Names1 = paste("XXX", 1:150), Values1 = 1:150 + 10, Values2 = 1:150) Now I want to plot this data-frame with googleVis. Therefore I run following codes: library(googleVis) plot(gvisBarChart(MyData, xvar="Names1", yvar=c("Val