[R-es] plot

Jose Betancourt Bethencourt bet@n@ter @end|ng |rom gm@||@com
Mie Mar 10 21:26:22 CET 2021


Estimados
No me deja hacr el plot, me dice Error in plot.new() : figure margins too large

Es en esta orden, adjunto script completo:

par(mfrow=c(2,1))  # divides the page into two plotting areas
plot(sirmodel$time,sirmodel$I/N,ylim=c(0,1.5*max(sirmodel$I/N)),type="l",col=1,lwd=5,xlab="Time,
in days",ylab="Fraction infected (prevalence)",main=paste("Influenza
pandemic in population of ",N,sep=""))
cat("The final size of epidemic from the deterministic model is
",max(sirmodel$R/N),"\n")

saludos
José
-- 
Dr. Jose A. Betancourt Bethencourt
Universidad de Ciencias Medicas Carlos j. Finlay

------------ próxima parte ------------
A non-text attachment was scrubbed...
Name: sir_agent.R
Type: application/octet-stream
Size: 4647 bytes
Desc: no disponible
URL: <https://stat.ethz.ch/pipermail/r-help-es/attachments/20210310/e8cfb88c/attachment-0002.obj>

------------ próxima parte ------------
A non-text attachment was scrubbed...
Name: sir_agent_func.R
Type: application/octet-stream
Size: 10199 bytes
Desc: no disponible
URL: <https://stat.ethz.ch/pipermail/r-help-es/attachments/20210310/e8cfb88c/attachment-0003.obj>


Más información sobre la lista de distribución R-help-es