- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to create an exponential curve in R?
To create an exponential curve, we can use exp function inside the plot function for the variable that we want to plot. For example, if we have a vector x then the exponential curve for the vector x can be created by using plot(x,exp(x)). We can use the exponential function for the variable that is appropriate based on the objective of the analysis, here we have shown only an example of how it works.
Example1
> x<-rpois(1000,5) > plot(x,exp(x))
Output
Example2
> y<-runif(50,2,8) > plot(y,exp(y))
Output
- Related Articles
- How to create an exponential distribution plot in R?
- How to round exponential numbers in R?
- How to create a standard normal distribution curve with 3-sigma limits in R?
- How to create an arrow in base R?
- How to create an S4 object in R?
- How to create an empty matrix in R?
- How to create an integer64 vector in R?
- How to create an ordinal variable in R?
- How to Create the path element quadratic curve in JavaFX?
- How to Create the path element cubic curve in JavaFX?
- How to create an empty data frame in R?
- How to create an alternately increasing sequence in R?
- How to display the curve on the histogram using ggplot2 in R?
- How to create an empty plot using ggplot2 in R?
- How to create an only interaction regression model in R?

Advertisements