Search
 
SCRIPT & CODE EXAMPLE
 

R

histogram r add line

# Add vertical line
plot(cars)
abline(v=15, col="blue")
# add 2 vertical lines: change line colors, sizes and types
plot(cars)
abline(v=c(15,20), col=c("blue", "red"), lty=c(1,2), lwd=c(1, 3))
# add an horisontal line
abline(h=40, col="blue")
Comment

PREVIOUS NEXT
Code Example
R :: rstudio plot not showing 
R :: show 2 plots together 
R :: calculating RMSE, Rsquared with caret in R 
R :: r make directory 
R :: filter na in r 
R :: R for loop append to vector 
R :: lubridate sequence of dates 
R :: geom_point r 
R :: rnorm in r 
R :: Derive end of the week date in r 
R :: remove_all_labels(x) 
R :: r get date from year and day 
R :: print percentage in r 
R :: copy list R 
R :: elseif r 
R :: kable thousand mark 
R :: r: network randomization test igprah stakoverflow 
R :: extract residual standard error from lm in r 
R :: how to upload multiple excel files r 
R :: Non-redundant version of expand.grid 
R :: legend in r 
Rust :: rust convertinging string to int 
Rust :: making a web server in rust 
Rust :: how to export a macro in rust 
Rust :: rust char array 
Rust :: rust argv 
Rust :: floor float rust 
Rust :: rust•armanriazi•concept•borrowchecker 
Rust :: gentoo rust stdlib 
Rust :: armanriazi•rust•trait•blanket 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =