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]]
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
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 tweaks you may want. On Mon, Jul 15, 2013 at 12:00 PM, Christofer Bogaso < bogaso.christofer@gmail.com> wrote:> 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@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. >-- Gregory (Greg) L. Snow Ph.D. 538280@gmail.com [[alternative HTML version deleted]]