I have a dataset that I'd like to plot with
data = read.table("input.txt", sep=" ", strip.white=TRUE, header=TRUE)
Error in hist.default(data$actions, breaks = seq(0, 130, by = 1), :
some 'x' not counted; maybe 'breaks' do not span range of 'x'
Calls: hist -> hist.default
The best way to avoid this error is to subset the data that you feed to the base R function
with(data, hist(actions[actions >= 0 & actions < 131], breaks=seq(0,130,by=1))
Maybe a little more flexible approach is to pre-specify the desired set of values, to make it easier to adjust if you change your mind at some point.
myValues <- seq_len(131)-1 with(data, hist(actions[actions %in% myValues], breaks=myValues)