Hi... Is this possible in R? I have 2-sets of data, that were collected simultaneously using 2- different data acquisition schemes. The x-values are the same for both. The y-values have different ranges (16.4-37.5 using one method, 557-634 using another). In theory, if you plot both plots on top of each other, the graphs should overlap. The problem I'm having is trying to have to different sets of y-values appear in the same graph, but scaled in the same vertical space. I've seen this done in publications, but not sure if it can be done in R. Any suggestions would be appreciated. Joe
On Dec 10, 2008, at 9:35 AM, Joe Trubisz wrote:> Hi... > > Is this possible in R? > > I have 2-sets of data, that were collected simultaneously using 2- > different data acquisition schemes. > The x-values are the same for both. > The y-values have different ranges (16.4-37.5 using one method, > 557-634 using another). > > In theory, if you plot both plots on top of each other, the graphs > should overlap. The problem I'm having is trying to have to > different sets of y-values appear in the same graph, but scaled in > the same vertical space. I've seen this done in publications, but > not sure if it can be done in R. > > Any suggestions would be appreciated. >Hello, Petr Pikal has written an easy to use function called plot.yy which might serve your need. You can find it using... RSiteSearch("plot.yy") Cheers, Ben
Joe Trubisz wrote:> Hi... > > Is this possible in R? > > I have 2-sets of data, that were collected simultaneously using > 2-different data acquisition schemes. > The x-values are the same for both. > The y-values have different ranges (16.4-37.5 using one method, > 557-634 using another). > > In theory, if you plot both plots on top of each other, the graphs > should overlap. The problem I'm having is trying to have to different > sets of y-values appear in the same graph, but scaled in the same > vertical space. I've seen this done in publications, but not sure if > it can be done in R.Hi Joe, Check out twoord.plot in the plotrix package. Jim