Thanks! That was exactly what I was looking for.

best regards

*pablo de camargo cerdeira*
pablo.cerdeira@gmail.com | pablo@fgv.br
Phone: +55-(21)-3799-6065
 [image: Facebook] <http://www.facebook.com/pablo.cerdeira>[image:
LinkedIn]<http://br.linkedin.com/in/pablocerdeira>[image:
Google] <http://www.google.com/profiles/pablo.cerdeira>
[image: Google Talk/]pablo.cerdeira [image: Skype/]pablocerdeira


On Wed, Aug 18, 2010 at 2:14 AM, Charles C. Berry <cberry@tajo.ucsd.edu>wrote:

> On Wed, 18 Aug 2010, Pablo Cerdeira wrote:
>
>  Hi all,
>>
>> I'm trying to plot this two curves in a single cartesian plane, but when I
>> plot the first one, the plot appears with no negative "y" value. When I
>> plot
>> the second curve, it almost does not apear in the graph.
>>
>> I was trying the plot.window but with no success.
>>
>> Can someone help me with this?
>>
>
> The answer is in
>
>        ?par
>
> but it requires a bit of deduction.  Start with the description of yaxs,
> which refers to xaxs. Notice what the xaxs paragraph says about xlim. If you
> can figure out that there is also a ylim arg, then you are pretty much
> finished. Something like
>
>        plot( f, -10, 10, ylim=c(-100,100) )
>
> will reveal both curves.
>
> xlim and ylim also appear briefly in R-Intro ni Appendix A.
>
> FWIW, one can use xlim and ylim to 'zoom in' on a section of a plot.
>
> HTH,
>
> Chuck
>
>
>> If possible, I'd like to plot this curves in a perfect cartesian plane.
>>
>> f = function(x) {
>>  x^2
>> }
>> f2 = function(x) {
>>  -x^2
>> }
>>
>> plot(f,-10,10)
>> abline(h=0, v=0, col = "gray60")
>> curve(f2,col="orange", add=T)
>>
>> Thanks in advanced!
>>
>>
>> *pablo de camargo cerdeira*
>> pablo.cerdeira@gmail.com | pablo@fgv.br
>> Phone: +55-(21)-3799-6065
>> [image: Facebook] <http://www.facebook.com/pablo.cerdeira>[image:
>> LinkedIn]<http://br.linkedin.com/in/pablocerdeira>[image:
>> Google] <http://www.google.com/profiles/pablo.cerdeira>
>>
>> [image: Google Talk/]pablo.cerdeira [image: Skype/]pablocerdeira
>>
>>        [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help@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.
>>
>>
> Charles C. Berry                            (858) 534-2098
>                                            Dept of Family/Preventive
> Medicine
> E mailto:cberry@tajo.ucsd.edu               UC San Diego
> http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901
>
>
>

	[[alternative HTML version deleted]]

