Qlik Community

Qlik Server Side Extensions Discussions

Discussion Board for collaboration on Server-Side Extensions and Advanced Analytics Integration.

New Contributor

R code in Qlik Sense using ggplot2 --- R to Qlik Sense

Hi there,

I am trying to recreate this code in Qlik... everything which is needed is there, except, for some reason I don't know how to modify my R code for Qlik..

R code:


mydata <- read.csv("Mispriced-Diamonds.csv")

ggplot(data = mydata, aes(x = carat, y=price)) + geom_point() + geom_smooth()

my Dimension is: carat

and my Measure...

In Qlik Sense I wrote almost the same (in 10 different variations, on of them...):

R.ScriptEval('library(ggplot2); ggplot(data = q, aes(x = q$carat, y = q$sumprice)) + geom_line()', carat as carat, Sum(price) as sumprice)

Can anyone give me a hint?


1 Reply
New Contributor III

Re: R code in Qlik Sense using ggplot2 --- R to Qlik Sense

Hello Anton,

Are you sure you can use ggplot in Qlik Sense ?

I tought we could used R code only to calculate but not to plot graph (without extention, JSON, ...)

Hope it'll help