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

How to plot two y-axis data in R using ggplot2

$
0
0

@pagal_guy wrote:

Hello,

I have two aggregated data info which I would like to plot vs a x- variable in R using ggplot2

I am currently being able to plot only

using

ggplot(data = store_sales_time, aes(store_type,fill = store_type,stat = "identiy"))+
                                            geom_bar(aes(x = store_type,fill = store_type,stat = "identiy"))

I want to display both the store counts and average of unit sales grouped by store_type on the y-axes.
Can someone please help me out on how to do this in R?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles