Quantcast
Channel: Plot two graphs in a same plot - Stack Overflow
Viewing all articles
Browse latest Browse all 18

Answer by DiegoJArg for Plot two graphs in a same plot

$
0
0

Use curve for mathematical functions.And use add=TRUE to use the same plot and axis.

curve( log2 , to=5     , col="black", ylab="log's(.)")curve( log  , add=TRUE , col="red" )curve( log10, add=TRUE , col="blue" )abline( h=0 )

enter image description here


Viewing all articles
Browse latest Browse all 18

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>