Answers for "remove x and y axis from R plot"

R
0

disable the y axis in plot r

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') # yaxt='n' removes the y axis values
axis(side = 2, at = c(1,2,3), labels = yticks)
Posted by: Guest on January-26-2021
0

plotly r remove x axis label

p %>% layout(xaxis= list(showticklabels = FALSE))
Posted by: Guest on March-18-2021

Code answers related to "remove x and y axis from R plot"

Browse Popular Code Answers by Language