Skip to content
Prev 244491 / 398503 Next

RES: Barplot with "Independent" Lines Y axis

Thank you for the function suggestion, works nicely for complete data
vectors. Just another question. When using the twoord.plot I reached another
issue, it seems that this function can't handle NAs in one of the variables
(the data of one month for another variable is missing). The lines and
barplot functions just interrupt the plot and continue after the NA but
twoord.plot gives me an error: Error at plot.window(...) : finite values are
necessary for 'ylim' 

Is there a way to work around this error?

P.S.: I'm aware of the problems regarding this type of graph, but this time
it's not a choice of mine (unfortunately). Thank you anyway for the
highlight, maybe it will help me arguing.

Regards

Rodrigo.

-----Mensagem original-----
De: Greg Snow [mailto:Greg.Snow at imail.org] 
Enviada em: quinta-feira, 9 de dezembro de 2010 15:56
Para: Rodrigo Aluizio; R Help
Assunto: RE: [R] Barplot with "Independent" Lines Y axis

Look at the twoord.plot function in the plotrix package, but be sure to read
the note on the help page, then reread it and take its advice if you decide
to stick with this type of plot.