Re: [R] Bode plots in ggplot2

2008-02-08 Thread Tribo Laboy
Hi Hadley and Thiery Thanks for the responses. I worked through the code provided by Thiery and at the end I realized that the scales for the phase and the gain are the same, which in practice is not the case. Then I read Hadley's comment and worked with it a bit too. It is already quite late

Re: [R] Bode plots in ggplot2

2008-02-07 Thread hadley wickham
On Feb 7, 2008 5:19 AM, ONKELINX, Thierry [EMAIL PROTECTED] wrote: Tribo, Suppose you dataset is called bode. Then melt it: Melted - melt(bode, id.var = c(frequency, system) Then you'll get something like. frequency | system | variabele | value 0 | system 1 | phase | 0 0 | system 1 |