User-defined tick axes in plot () function

I am trying to make a line chart with an axial gap of 0-25-50-75-100, but I can not find a parameter for this. My syntax consists of packages for comparison :

plot(x, ordered=FALSE, group.order=names(data))

A break of 0-50-100 is displayed here. The plot should be a tornado diagram that offers a likert package with the above function. Example:

enter image description here

In this other example, you can see what I want to get:

enter image description here

+3
source share
1 answer

likert. , plot() R. , R. xaxp=, x. hist():

  # this will allow you to run my code & get the same results
set.seed(1)    
  # here I generate some data
x <- runif(100, min=0, max=100)  
  # this makes the histogram, the xaxp argument does what you're after
hist(x, breaks=c(0,25,50,75,100), xaxp=c(0,100,4))  

enter image description here

. R, ?

0

All Articles