plot multiple lines in r

# Plotting the electrical parameters around the detected failure
library(devEMF)
emf(file = "Electrical parameters on inverter saturation.emf", emfPlus = TRUE)
plot(y=yRange$Pac, x=yRange$Time, type='l', ylim=c(0,1100), xlab='Time', ylab='Vmp, Pac, Imp', lwd=2)
lines(y=yRange$Pmp, x=yRange$Time, col='blue', lwd=2)
lines(y=yRange$Vmp, x=yRange$Time, col='red', lwd=2)
legend(yRange$Time[round(0.725*nrow(yRange))], 1100, legend=c("AC Power (kW)", "DC Power (kW)", "DC Voltage (V)"),
       col=c("black", "blue", "red"), lty=1, cex=0.8,
       title='Legend', text.font=4, bg='lightblue')
#lines(y=yRange$Imp, x=yRange$Time, col='purple', lwd=2)
#lines(y=yRange$GI, x=yRange$Time, col='green3', lwd=2)
dev.off()

Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
multiple line plots in r r how to plot two lines on one graph R plot multiple lines from data frame plot multiple in r R plot additional lines in plot r multiple line plots one graph R plot two lines multiple line plot loop in r for loop multiple line plot r plotly multiple lines in one plot r graph multiple lines in R programming r plot multiple lines in one grapth r plot multiple lines in one plot R multiple plot line multiple line graph in r r plot two lines multiple lines in one plot r multiple lines in a graph R plot multiple lines line plot of two variables in R multiple line graphs in R add multiple lines to line graph r r base plot multiple lines plotting multiple lines in one graph r plotting multiple lines in r Add more than three lines to a plot R plot two lines in the same graph in r r plot multiple lines on same plot how to plot two lines on a graph in r plotly r multiple lines multiple lines one graph r multiple line chart in r with multiple axes plotly multiple line chart in r with multiple axes plot two lines at once R plot multiple lines r plot draw multiple lines in R how to plot multipe line in r df.plot multiple lines r plot multiple lines in a same plot r how to make a plot with multiples lines in r plot r plot multiple lines r plot more than one line how to plot multiple lines in matlab scatterplot how to draw multiples lines in R studio how to plot more than one line in R code how to save multiple plots into one R plot 2 columns in r plot multiple plots in r plot multiple lines in r
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source