filmov
tv
Draw Multiple Function Curves to Same Plot | Base R & ggplot2 Package | Using curve() & geom_line()
Показать описание
R code of this video:
my_fun1 <- function(x) { x^3 - x * 300 } # Create own functions
my_fun2 <- function(x) { x^3 * 2 + x^2 + x * 10 + 5 * 10^10 }
my_fun3 <- function(x) { - x^3 + x^2 - 2 * 10^10 }
curve(my_fun1, from = - 5000, to = 5000, col = 2) # Draw Base R plot
curve(my_fun2, from = - 5000, to = 5000, col = 3, add = TRUE)
curve(my_fun3, from = - 5000, to = 5000, col = 4, add = TRUE)
library("ggplot2")
values = c(my_fun1(- 5000:5000),
my_fun2(- 5000:5000),
my_fun3(- 5000:5000)),
fun = rep(c("fun1", "fun2", "fun3"), each = 10001))
ggplot(data_fun, # Draw ggplot2 plot
aes(x, values, col = fun)) +
geom_line()
Follow me on Social Media:
my_fun1 <- function(x) { x^3 - x * 300 } # Create own functions
my_fun2 <- function(x) { x^3 * 2 + x^2 + x * 10 + 5 * 10^10 }
my_fun3 <- function(x) { - x^3 + x^2 - 2 * 10^10 }
curve(my_fun1, from = - 5000, to = 5000, col = 2) # Draw Base R plot
curve(my_fun2, from = - 5000, to = 5000, col = 3, add = TRUE)
curve(my_fun3, from = - 5000, to = 5000, col = 4, add = TRUE)
library("ggplot2")
values = c(my_fun1(- 5000:5000),
my_fun2(- 5000:5000),
my_fun3(- 5000:5000)),
fun = rep(c("fun1", "fun2", "fun3"), each = 10001))
ggplot(data_fun, # Draw ggplot2 plot
aes(x, values, col = fun)) +
geom_line()
Follow me on Social Media:
Draw Multiple Function Curves to Same Plot | Base R & ggplot2 Package | Using curve() & geom...
Visualizing Multi-variable Functions with Contour Plots
How to plot any function curves in R | draw function curves using R | plot( ) | curve ( ) R function
How to sketch level curves
Draw Multiple Scatter Curves in Excel
Level Curves and Traces of Multivariable Functions
How to Find the Level Curves of z = 12 - 3x - 4y
Plot Multiple Curves and Enhance Your Graphs | Matplotlib Tutorials
Doctoral defense - Ualisson Donardelli Bellon
Plotting multiple sine curves on the same figure using MATLAB
How to Graph Multiple Curves
Calculus 3 Lecture 13.1: Intro to Multivariable Functions (Domain, Sketching, Level Curves)
Matlab/Octave Tutorial: Plot Multiple Curves in Same Figure
How do you sketch level curves of multivariable functions?
𝑯𝒐𝒘 𝒕𝒐 𝑴𝒂𝒌𝒆 : 𝑴𝒖𝒍𝒕𝒊−𝒀−𝑪𝒖𝒓𝒗𝒆𝒔 𝒃𝒚 𝑶𝒓𝒊𝒈𝒊𝒏𝑷𝒓𝒐...
❖ Multivariable Calculus: Finding and Sketching the Domain ❖
Graphing Multiple Function Transformations - Part 1 of 2
Multiple Points for two dimensional curves | Advanced Calculus | BSc Mathematics
Gnuplot #5 - Plot multiple curves
How to fit non-linear equations in excel using solver
How to Graph Multiple Curves (Accessible)
MATLAB Plotting multiple continuous functions and theoretical curves in the same figure window
Level Curves | Functions of Several Variables
14.1 Domain and range for multi-variable functions
Комментарии