Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8492379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:42:06+00:00 2026-06-10T22:42:06+00:00

I have a complex function of y in terms of x as below y

  • 0

I have a complex function of y in terms of x as below

y = 1-(e^(-((x^2)/730)))  

or y equals 1-(e power minus (x-square/730))

How do i represent such complex functions in R? I want to draw a curve(graph) connecting all these points. I also want to mark x-axis from 0 to 370 with interval of 10. I know how to keep the breaks, but i don’t know how i can label axes with numbers. If help is given somewhere, please guide me to that link. Much appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T22:42:07+00:00Added an answer on June 10, 2026 at 10:42 pm

    Check out the help for ?curve, ?axis …

    ## draw the curve
    curve(1-exp(-x^2/730),from=0,to=370,axes=FALSE)
    axis(side=2)  ## add default lefthand axis
    axis(side=1,at=seq(0,370,by=10))  ## add custom bottom axis
    box(bty="l")  ## add a box
    

    One thing to note is that R suppresses overlapping labels, so unless you have a very wide plot you won’t actually see every axis label. You can try adding cex.axis=0.5 (or even smaller) to your side-1 axis if you like. You could also check out the staxlab function from the plotrix package, or rotate the axis labels.
    (You had a lot of superfluous parentheses in your expression; more parentheses don’t really hurt, but in the long run you can make cleaner code (and spend less time counting parentheses) if you learn the order of operations.)

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a fairly complex function f(x) that I want to optimize and I
I have created one multiplication of complex function using prototype in java-script function ComplexNumber(real,imaginary)
I have a simple recursive function RCompare() that calls a more complex function Compare()
I have complex GUI application written in Python and wxPython. I want it to
I have a complex js function with an equation in which I actually need
I have a very complex function in as3. The function is composed of many
I have a complex objective function I am looking to optimize. The optimization problem
I have a complex function (optimisation) that can potentially enter in a loop or
I have the following code for a complex function plotter. It creates a phase
I have some complex form, with several subforms, and I want to be able

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.