about two y-axes, one y-axis with two groups

68 views
Skip to first unread message

lily li

unread,
Oct 25, 2016, 9:00:49 AM10/25/16
to ggp...@googlegroups.com
Hi ggplot2 users,

I have a dataframe like this:

DF
   time           ID  value1  value2
2010-01-01   1      0.1       124
2010-01-02   1      0.2       121
2010-01-01   2      0.1       124
2010-01-02   2      0.3       121
...

I want to plot value1 on the left axis, value2 on the right axis, time on the x-axis. Also, there are two lines for value1, with IDs 1 and 2. How to realize this in ggplot2?

Thanks for your help.

Wouter van der Bijl

unread,
Nov 2, 2016, 7:48:23 AM11/2/16
to ggplot2

Yaakov Borstein

unread,
Nov 27, 2016, 7:17:35 AM11/27/16
to ggplot2
Maybe we should remove all GLS routines, confidence intervals, ..., maybe ban all estimation because they can (and will) be misused.

John Kane

unread,
Dec 2, 2016, 11:56:39 AM12/2/16
to ggplot2
Reply all
Reply to author
Forward
0 new messages