Friday, 2 November 2012

googleVis 0.3.3 is released and on its way to CRAN

I am very grateful to all who provided feedback over the last two weeks and tested the previous versions 0.3.1 and 0.3.2, which were not released on CRAN.

So, what changed since version 0.3.2?


Not much, but plot.gvis didn't open a browser window when options(gvis.plot.tag) were not set to NULL, but the user explicitly called plot.gvis with tag NULL. Thanks to Sebastian Kranz for reporting this bug. Additionally the vignette has been updated and includes an extended section on knitr.

As usual, you can download the most recent version from our project site. It will take a few days before version 0.3.3 will be available on CRAN for all operating systems.

I hope this version will not cause too much trouble. And on that note, here is a picture I took earlier today, walking down the stairs of Montée-Nicolas-de-Lange in Lyon. I like the message, though I am not sure if it was meant in relation to the empty red wine bottle on the ground.

Photo: Markus Gesmann

8 comments:

  1. I'd just like to thank you for googleVis. I've found it really useful. You might like to see the following use I made of it: http://www.comisiynyddygymraeg.org/English/Assistance/Dataandstatisitcs/Pages/2011Censusresultsandchangessince2001.aspx

    ReplyDelete
  2. Thanks Hywel. I am delighted to hear that you found the package useful. Many thanks for sharing the link!

    Markus

    ReplyDelete
  3. Hi Markus, googleVis is a really cool package.Thank you for making it available to us. I have a question. Can we create a global filter button in googlevis ? so that we can see the updates at once in charts that are merged using gvismerge?

    ReplyDelete
  4. I think you will need some JavaScript to make this work. I suppose you will have to do some post-processing of the HTML output of googleVis.

    ReplyDelete
  5. Thanks for the quick reply Markus.

    ReplyDelete
  6. Hi, Markus, googleVis is really awesome. Thank you for your continuous work on it. I always want to make the most of it in varied fields. Most of its functions work just great. However I tried hard many times to figure out what exactly the format is accepted by 'options'. And the instructions and examples I could find for 'options' are, at least to me, not easy to grasp.
    I hate to ask questions by pasting codes, but this is scratching me for days and it will be a relief if I could get some hints or answers. Thank you in advance. Here it is.
    /Eric

    The main function works fine. And some of the basic controls, like width, showXScalePicker also work. But the finer options are difficult to control. The following three are my trials and none of them is working.

    M0 <- gvisMotionChart(raw, idvar = "age", timevar = "year",
    xvar = "men", yvar = "women",
    colorvar = "", sizevar = "",
    options = list(width = 1024, height = 800,
    showXScalePicker = FALSE,
    showYScalePicker = FALSE,
    hAxis = "{viewWindiw:{Mode:'explicit', min:100000, max:400000}}"
    vAxis = "{viewWindiw:{Mode:'explicit', min:100000, max:400000}}"
    )
    )


    M0 <- gvisMotionChart(raw, idvar = "age", timevar = "year",
    xvar = "men", yvar = "women",
    colorvar = "", sizevar = "",
    options = list(width = 1024, height = 800,
    showXScalePicker = FALSE,
    showYScalePicker = FALSE,
    vAxis = paste("viewWindow:{Mode:'explicit', min:100000, max:400000}"),
    hAxis = paste("viewWindow:{Mode:'explicit', min:100000, max:400000}")
    )
    )


    M0 <- gvisMotionChart(raw, idvar = "age", timevar = "year",
    xvar = "men", yvar = "women",
    colorvar = "", sizevar = "",
    options = list(width = 1024, height = 800,
    showXScalePicker = FALSE,
    showYScalePicker = FALSE,
    vAxis.viewWindowMode = "explicit",
    vAxis.viewWindow.min = 100000,
    vAxis.viewWindow.max = 400000,
    hAxisviewWindowMode = "explicit",
    hAxisviewWindow.min = 100000,
    hAxisviewWindow.max = 400000)
    )

    ReplyDelete
  7. Hi Eric,

    I believe you get confused between the options of the various googleVis functions. The options for gvisMoitonChart are somewhat limited. Please check the help file of ?gvisMotionChart. Setting option for hAxis or vAxis is not directly available. Instead you can modify the motion chart via the browser and pass on those settings via the state argument in options. The examples of gvisMotionChart should get you started. See also an older blog post of mine: http://lamages.blogspot.co.uk/2011/09/setting-initial-view-of-motion-chart-in.html



    I hope this helps.


    Markus

    ReplyDelete
  8. true that. thank you for your reply, Markus. I think I mixed the options of different functions. I thought there were somehow universal options.

    i will follow your ideas and try to modify the options via the browser. hope i can make it work.



    many thanks.


    /Eric

    ReplyDelete