Re: plot several data frames

22 views
Skip to first unread message

Brandon Hurr

unread,
Jan 24, 2018, 10:16:50 AM1/24/18
to bic ton, ggplot2
Bic,

Could you provide a reproducible example?

I'm certain you can do this, but it's hard to know how to start without a good example of your actual dataset.

B

On Wed, Jan 24, 2018 at 1:06 AM, bic ton <bict...@gmail.com> wrote:
I have this kind of datasets:

test=LifeCycleSavings[1:9,]
test1=LifeCycleSavings[1:9,]
test2=LifeCycleSavings[1:9,]

I would like to plot it:

so I do like this:


barplot(as.matrix(test[4,]), main="My Barchart", ylab = "Numbers", cex.lab = 1.5, cex.main = 1.4)# works fine


I want to add to this plot   test1 and test2 on x axis (with different colors) . 

Any idea on this using ggplot2?
Thanks,
Bic

--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
 
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+unsubscribe@googlegroups.com
More options: http://groups.google.com/group/ggplot2

---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages