SKKU-SKT / ggplot2.SparkR

Rebooting ggplot2 for scalable big data visualization
http://skku-skt.github.io/ggplot2.SparkR/
GNU General Public License v2.0
28 stars 6 forks source link

Getting exception while creating the ggplot #10

Open mushtaqrizvihw opened 7 years ago

mushtaqrizvihw commented 7 years ago

Hi, I have a SparkR data frame which looks like this:

DELAY_LABELED| count| +-------------+------+ | 1.0|168333| | 0.0|752025|

I am getting this exception after I run this command: ggplot(delay, aes(x= DELAY_LABELED, fill = count)) + geom_bar()

Error in UseMethod("facet_train_layout_SparkR") : no applicable method for 'facet_train_layout_SparkR' applied to an object of class "c('FacetNull', 'Facet', 'ggproto')"

JonghyunBae commented 7 years ago

Thanks for your reporting.

It looks like internal error for filling stackrd bar graph.

I will update it and report ASAP.

Thanks. -Jongjyun Bae-

JonghyunBae commented 7 years ago

Hi.

Currently, we can get "fill" argument as value that consists of character.

I will fix it ASAP and report it.

Thanks -Jonghyun Bae-

mushtaqrizvihw commented 7 years ago

Thanks @JonghyunBae , it will be a great help.

PedroCAlvarez commented 7 years ago

Hi,

I have the same error with aes(x,y) in ggplot.

I use Spark 1.6.0 and my DataFrame, named tmp, looks like +---------+--------+------+----------+ |longitude|latitude|source| date| +---------+--------+------+----------+ | -3.48724|40.43033| 4|2016-05-12| | -3.45208|40.41633| 4|2016-05-12| | -3.44989|40.41559| 4|2016-05-12| | -3.44745|40.41472| 4|2016-05-12| .....

when I try

ggplot(data=tmp,aes(x=longitude,y=latitude))

I get:

Error in UseMethod("facet_train_layout_SparkR") : no applicable method for 'facet_train_layout_SparkR' applied to an object of class "c('FacetNull', 'Facet', 'ggproto')"

guzu92 commented 7 years ago

Hi,

Any news on this issue ? I'm also having de same problem. Using Spark 1.6 as well.

> class(df)

[1] "DataFrame"
attr(,"package")
[1] "SparkR"

> ggplot2.SparkR::ggplot(df, mapping = aes(variable1)) + 
        geom_histogram() 

Error in UseMethod("facet_train_layout_SparkR") : no applicable method for 'facet_train_layout_SparkR' applied to an object of class "c('FacetNull', 'Facet', 'ggproto')"
tatianass commented 7 years ago

Same here, but I am using databricks, here is my code.