Skip to content
Discussion options

You must be logged in to vote

Dear @arip7608

  1. Tooltip tidak muncul dikarenakan penempatan parameter text = label seharusnya berada di dalam aes( ) pada ggplot berbarengan setelah y = reorder (Product.Category,to_rev), text = label)
  2. Warna di bagian bar plot nya tidak berubah (hanya warna grey), hal ini dikarenakan penempatan aes yang salah, seharusnya:
ggplot(mapping = aes(x=to_rev,
                     y = reorder (Product.Categoryto_rev, to_rev),
                     text = label))+
  geom_col(aes(fill = to_rev))+ #disesuaikan dengan apa yang mau digradasikan, nilai dari to_rev nya
  scale_fill_gradient( low = "blue",
                       high = "red") +
  labs(title = "Revenue Contribution by Product Category",
 …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by arip7608
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
DV Data Visualization IP Interactive Plotting Capstone DV Capstone Data Visualization
2 participants