Search code examples
rggvis

ggvis: can't find compute_quantreg function


I'm trying to create geom_quantiles in ggvis and the documentation says that this can be accomplished using

geom_quantile = layer_paths + compute_quantreg

However, I can't find the compute_quantreg function. A google search brought nothing up except the same documentation page where it says to do the above. I also tried ??compute_quantreg as well as help("compute_quantreg") with no luck. Any idea where I can find this function?

I'm using the latest version of ggvis as of this date (ggvis_0.4.2), dplyr_0.4.3, and ggplot2_2.1.0.


Solution

  • As cory mentioned in the comments, looks like this function is on the roadmap but has not yet been added as of July 5th 2016.

    Ben also mentioned this neat apropos function which can be used as shown below to see which computational layers (or whatever they're called) are implemented.

    library(ggvis)
    apropos("^compute_") 
    

    See this link to the quantile-compute.R function for a potential implementation of the compute_quantile function.