callv2viz.R

# library(sparklyr)
# sc = spark_connect(master="local")
# library(dplyr)
#
# library(nycflights13)
# df_spark <- copy_to(sc, head(flights,2000), "f_tbl", overwrite = TRUE)
# w <- spark_dataframe(df_spark)
#
# proposedSyntaxList <- sparklyr::invoke_static(sc,"com.ibm.wml.dataviz.DataVizUtils", "getBrunelVisualizationSyntax", df, list("carrier", "flight"))
# proposedSyntaxListgetSyntax
#
# op1 <- invoke_new(sc, "scala.Some", FALSE)
# op2 <- invoke_new(sc, "scala.Some", 600L)
# op3 <- invoke_new(sc, "scala.Some", 600L)
# op4 <- invoke_new(sc, "scala.Some", "https://model-viewer-qa.mybluemix.net")
# op5 <- invoke_new(sc, "scala.Some", "light")
#
# htmlForSyntax <- invoke_static(sc,"com.ibm.wml.dataviz.DataVizUtils", "createBrunelVisualizationFromSyntax", df, "bar x(carrier) y(flight) sum(flight) sort(flight) tooltip(#all)", op1, op2, op3, op4, op5)
# htmlForSyntax
kevin-sorat/v2viz documentation built on Oct. 24, 2017, 8:03 a.m.