Search
 
SCRIPT & CODE EXAMPLE
 

R

change the y ticks in r plot

yticks = c('A', 'B', 'C')
x = c(0, 1, 2, 3, 4, 5)
y = c(1, 2, 3, 2, 1, 3)
plot(y = y, x = x, yaxt = 'n', type='b')
axis(side = 2, at = c(1,2,3), labels = yticks)
Comment

PREVIOUS NEXT
Code Example
R :: predict in r stack 
R :: read.table 
R :: r mode 
R :: how to source all fies from a directory in r 
R :: r select rows 
R :: select R 
R :: r dplyr summarize multiple columns 
R :: unset par mar 
R :: extract hyperlinks in r 
R :: r yardstick confusion matrix 
R :: geom_boxplot line width 
R :: R concaat string and number 
R :: Edit axis labels R 
R :: extract first element before a character stringr 
R :: linear regression r text label coefficient ggplot 
R :: ISO 2 letter country code in r 
R :: imputation in r 
Rust :: how to index a string in rust 
Rust :: rust absolute value 
Rust :: read file rust 
Rust :: rust repeat character x times 
Rust :: armanriazi•rust•vec•some•pop 
Rust :: check if an item is in vec in rust 
Rust :: rust from floating point to money 
Rust :: rust missing lifetime specifier 
Rust :: armanriazi•rust•trait•bound 
Rust :: rust closeure 
Rust :: armanriazi•rust•unsafe•static 
Lua :: how to comment multiple lines in lua 
Lua :: roblox tween color 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =