[R] overlapping graphs in logarithmic y-axis

Uwe Ligges ligges at statistik.tu-dortmund.de
Sun Dec 2 16:53:24 CET 2012



On 02.12.2012 16:19, eliza botto wrote:
>
> dear useRs,
> i want to overlap graphs of two matrices in such a way that the y-axis of graph should be "logarithmic" against normal x-axis.
> i am, unsuccessfully, trying the followings
>> matplot(mata, log="mata",type = "l", col="red)>lines(mata, log="matb",type = "l", col="yellow")

This cannot wok for several reasons, inclusing typos, and is not 
reproducible for us given we do not know about "mata".

Anyway, fixing your typos and the specification of the argument "log", 
we get:

matplot(mata, log="y", type = "l", col = "red")

and overlay the red with yellow lines, although it makes no sense:

matplot(mata, type = "l", col = "yellow", add = TRUE)

Uwe Ligges



> could you please help me out on it??
> thanks in advanceregards
> eliza 		 	   		
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>




More information about the R-help mailing list