[R] Question on plotting with googleVis

Arnaud Michel michel.arnaud at cirad.fr
Tue Jul 16 11:52:15 CEST 2013


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), 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("Values1", "Values2")))
>
> However the problem is that, hardly this plot can be read. However if I
> plot a fraction of my data-frame then the underlying plot is clearly
> visible:
>
> plot(gvisBarChart(MyData[1:15,], xvar="Names1", yvar=c("Values1",
> "Values2")))  ## This is clearly visible.
>
>
> I would really appreciate if someone gives me some pointer how I can
> clearly plot my data-frame with googleVis. I understand that there are many
> other plotting methods available with R like ggplot, however here I want to
> use googleVis because of its strength in showing the values within the plot
> area itself if you hover your mouse.
>
> Thanks and regards,
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>

-- 
Michel ARNAUD
Chargé de mission auprès du DRH
DGDRD-Drh - TA 174/04
Av Agropolis 34398 Montpellier cedex 5
tel : 04.67.61.75.38
fax : 04.67.61.57.87
port: 06.47.43.55.31



More information about the R-help mailing list