You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@zeppelin.apache.org by Andres Koitmäe <an...@gmail.com> on 2017/01/12 16:01:08 UTC

Problem with spark.r plotting functionality

Hi,

I have problem with R plots in Zeppelin. I have Hortonworks Sandbox 2.5
where I installed  Zeppelin 0.6.2 (I'm not using HDP provided version on
Zeppelin there)

I followed the instructions from
https://zeppelin.apache.org/docs/0.6.2/interpreter/r.html

I can do all data manipulations but plotting is not working. For example:

%spark.r

data(mtcars)
mtcars

should according to the documentation display the results using  Zeppelin
built-in visualizations but instead it just show it as text:


Mazda RX4 21.0 6 160.0 110 3.90 2.620 16.46 0 1 4 4
Mazda RX4 Wag 21.0 6 160.0 110 3.90 2.875 17.02 0 1 4 4
Datsun 710 22.8 4 108.0 93 3.85 2.320 18.61 1 1 4 1
Hornet 4 Drive 21.4 6 258.0 110 3.08 3.215 19.44 1 0 3 1

The second example

%spark.r

data(faithful) f <- createDataFrame(sqlContext,faithful)
registerTempTable(f,"faithful") ed <- sql(sqlContext,"SELECT * FROM
faithful") SparkR:::head(ed)

is not using Zeppelin built-in visualizations as well.

Is it somehow possible to make Zeppelin & spark.r to work in a way as show
in documentation.

Regards,

Andres