You are on page 1of 1

n=30

nf=seq(0,30,by = 1)
exter_stability=2*nf^2+(1-n)*nf+1
inter_stability=2*nf^2+(5-n)*nf+4-n
invers_stability=nf
nc=n-nf

plot(nf,invers_stability,type="l",col=1)
lines(nf,exter_stability,type="l",col=2)
lines(nf,inter_stability,type="l",col=3)
lines(nf,nc,type="l",col=4)

legend("topright",legend=c("exter_stability","inter_stability","invers_stability","nc"),
col=c("2","3","1","4"),lty=1,cex=0.8)
title(main="Cartel stability", col="yellowblue", font.main=4)

You might also like