Is this a STATISTICAL problem? In this and the earleir post I think you may be using R for a purpose for which it was not intended.
That said, you might find something useful here: http://stackoverflow.com/questions/12702248/plotting-implicit-function Forwarded message: > From r-sig-teaching-boun...@r-project.org Wed May 18 14:59:01 2016 > X-Original-To: b...@statland.org > X-Csoft-Rule: spam<=5.0 > X-Spam-Checker-Version: SpamAssassin 3.4.1-csoft45 (2015-04-28) on > lilly2.csoft.net > X-Spam-Level: > X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,FREEMAIL_FROM, > > NULL_IN_BODY,PP_MIME_FAKE_ASCII_TEXT,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, > RCVD_IN_MSPIKE_WL,TXREP autolearn=ham autolearn_force=no > version=3.4.1-csoft45 > DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; > h=mime-version:in-reply-to:references:date:message-id:subject:from:to > :cc; bh=V3RPDIath7PWn8fO+vM6b0AiFAYAwPqfJGzuPvoDVKI=; > b=o8WqXkM+OWZQvUgq1pKpZqPs5qb+XVxuezMAk4ivB9ituZPpCgQXJaCP4m2QU17Zsk > lN0Hsu78iFC8ClqsnR5BD3i7C4FLjBzv6BJy1Hq1b+bLjmEIQU3lmn6K+XRXCrERbQCd > H1eHaXZUlXCcy07hjIjNwrkD+9jP4KEEtniePf2QabNBwwjVCYFDux03P7T26V1ZuQVS > KKXp+NDxE9xY5OZfURl8gOCZ/6UocXkmkeWGZ9IXdYt9J3f1BKDBXHA1eqwOPXwh/9NU > Pt7LwUSslK/YtcZvkpTZyOvpGoIqptL5V3F9T8mkY8E4k300swL7cYYksq0/IyqnsnPV > h9/w== > X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; > d=1e100.net; s=20130820; > h=x-gm-message-state:mime-version:in-reply-to:references:date > :message-id:subject:from:to:cc; > bh=V3RPDIath7PWn8fO+vM6b0AiFAYAwPqfJGzuPvoDVKI=; > b=W7NVY93U+L7LRb/cvCvG5hTQkmg1jz/Sa4obJYUDwXvIZo+4pS1B6sJKPLKBr6XfcE > QmJazX/1AoxIj6WCHBXFvGkI+Qb2659i97m/oEf/XgcAFAqsjyVUi6be1Jjti0firgLp > s9Pi83GypjZ7SQTBvJu8wadDjNm9uboNDETxD1CU50S7orGALh/tHKLnXR0G6HYdklKQ > F7XU9+O3INFyUGb+NpZLnWAjoACCf3V4nokHuZIbdEa+8R526Ijqfkxf1/gcitQDuLhr > /oWo/qVLYGSJ/lmPN9a5vuVIhr98+xQ6f7nQEzN9cdB6sBAy2NnzZIU7vVJNKzm1ktUG > t2Fw== > X-Gm-Message-State: > AOPr4FWb+aJU98U2EFrVhGIoxp3BUo2f5oibU/EF1JyWq/gDDy96HszazqRq3kV/YCPRBYOpGkpjloNX2lKXLA== > MIME-Version: 1.0 > X-Received: by 10.55.27.98 with SMTP id b95mr9904280qkb.18.1463597895058; Wed, > 18 May 2016 11:58:15 -0700 (PDT) > In-Reply-To: > <CAP01uRnZ7gX_m8EtsguxfK9qRX=x2x_Rb4wHm60ye=raxsr...@mail.gmail.com> > References: > <CAHDp66DzBWQpwjFrg01KuN-xgckjb9_=j+pwh8bbjxcz-mw...@mail.gmail.com> > <CAP01uRnZ7gX_m8EtsguxfK9qRX=x2x_Rb4wHm60ye=raxsr...@mail.gmail.com> > Date: Wed, 18 May 2016 14:58:14 -0400 > Message-ID: > <CAHDp66BbhQ8_v0hkzkvjkn19UKQPxzXtjZFqdBhqL=jdv4z...@mail.gmail.com> > From: Steven Stoline <sstol...@gmail.com> > To: Gabor Grothendieck <ggrothendi...@gmail.com> > X-Tag-Only: YES > X-Filter-Node: phil3.ethz.ch > X-USF-Spam-Level: > X-USF-Spam-Status: hits=0.3 tests=EZ_HAS_URI, FREEMAIL_FROM, FREEMAIL_REPLY, > HTML_MESSAGE, RCVD_IN_DNSWL_LOW, SPF_PASS, T_DKIM_INVALID > X-USF-Spam-Flag: NO > X-Virus-Scanned: by amavisd-new at stat.math.ethz.ch > Content-Disposition: inline > Cc: R-sig-teaching <r-sig-teaching@r-project.org> > Subject: Re: [R-sig-teaching] Plot f(x) = x^(1/5) > X-BeenThere: r-sig-teaching@r-project.org > X-Mailman-Version: 2.1.18-1 > Precedence: list > List-Id: SIG on Teaching Statistics using R <r-sig-teaching.r-project.org> > List-Unsubscribe: <https://stat.ethz.ch/mailman/options/r-sig-teaching>, > <mailto:r-sig-teaching-requ...@r-project.org?subject=unsubscribe> > List-Archive: <https://stat.ethz.ch/pipermail/r-sig-teaching/> > List-Post: <mailto:r-sig-teaching@r-project.org> > List-Help: <mailto:r-sig-teaching-requ...@r-project.org?subject=help> > List-Subscribe: <https://stat.ethz.ch/mailman/listinfo/r-sig-teaching>, > <mailto:r-sig-teaching-requ...@r-project.org?subject=subscribe> > Content-Type: text/plain; charset="us-ascii" > Content-Transfer-Encoding: 7bit > Errors-To: r-sig-teaching-boun...@r-project.org > Sender: "R-sig-teaching" <r-sig-teaching-boun...@r-project.org> > > Dear All: > > > can someone please help me to plot the *Folium of Descrates:** x^3+y^3=3xy > for x<-seq(-5,5,0.010) and **y<-seq(-5,5,0.010) * > <https://www.google.com/search?biw=1155&bih=597&q=R:+Folium+of+Descartes&spell=1&sa=X&ved=0ahUKEwiBrsnWpeTMAhUFKB4KHU5TD0EQvwUIGSgA> > > > with thanks > steve > > On Tue, May 17, 2016 at 9:07 AM, Gabor Grothendieck <ggrothendi...@gmail.com > > wrote: > > > Try this: > > > > y <- sign(x) * abs(x)^(1/5) > > > > On Tue, May 17, 2016 at 8:44 AM, Steven Stoline <sstol...@gmail.com> > > wrote: > > > Dear All: > > > > > > > > > I am trying to plot the function f(x) = x^(1/5) for x=seq(-2,2,0.01). It > > > give me only the plot of f(x) for the positive part of x. I checked the > > > values of f(x), it is NaN for all negative values of x. > > > > > > *this is my code:* > > > > > > > > > x<-seq(-2,2,0.01) > > > y<- (x)^(1/5) > > > plot(x,y, type="l", lwd=3, xlab = " ", ylab = " ", col="blue") > > > abline(v=0, col="gray", lty=2, lwd=3) > > > abline(h=0, col="gray", lty=2, lwd=3) > > > > > > > > > > > > any help will be appreciated. > > > > > > > > > with many thanks > > > steve > > > -- > > > Steven M. Stoline > > > 1123 Forest Avenue > > > Portland, ME 04112 > > > sstol...@gmail.com > > > > > > [[alternative HTML version deleted]] > > > > > > _______________________________________________ > > > R-sig-teaching@r-project.org mailing list > > > https://stat.ethz.ch/mailman/listinfo/r-sig-teaching > > > > > > > > -- > > Statistics & Software Consulting > > GKX Group, GKX Associates Inc. > > tel: 1-877-GKX-GROUP > > email: ggrothendieck at gmail.com > > > > > > -- > Steven M. Stoline > 1123 Forest Avenue > Portland, ME 04112 > sstol...@gmail.com > > [[alternative HTML version deleted]] > > _______________________________________________ > R-sig-teaching@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-sig-teaching > > -------> First-time AP Stats. teacher? Help is on the way! See http://courses.ncssm.edu/math/Stat_Inst/Stats2007/Bob%20Hayden/Relief.html _ | | Robert W. Hayden | | 614 Nashua Street #119 / | Milford, New Hampshire 03055 USA | | | | email: bob@ the site below / x | website: http://statland.org | / '''''' _______________________________________________ R-sig-teaching@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-teaching