Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

How to pass the variable y to ggplot in R

$
0
0

@pagal_guy wrote:

Hello,

I have some aggregated data:

And I want to display the store_sales by product_category using ggplot.I am using the below code:

ggplot(data = agg_sales_pcat, aes(x = product_category,y = store_sales,fill = product_category,stat = 'identity'))+
  geom_bar(aes(x = product_category,y = store_sales,fill = product_category,stat = "identiy"))

However I am getting an error saying:
Uploading...

Can someone please help me on how to resolve this error?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles