Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6104525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:51:07+00:00 2026-05-23T13:51:07+00:00

While I try to plot histogram in R by defining a set of bins

  • 0

While I try to plot histogram in R by defining a set of bins I get this error ‘some ‘x’ not counted; maybe ‘breaks’ do not span range of ‘x”.
I am following the information on the website ‘http://msenux.redwoods.edu/math/R/hist.php’ which states ‘Use the arange command to produce this set of bins’. I tried to search in the internet about how to produce suitable range of bins for my data set but in vain.

Could anyone tell me how its done? or if there is any other way.
I have tried to set the bins as

bins=seq(0,3,by=0.2)

and plot histogram as

hist(log10(a),col=4,breaks=bins)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T13:51:08+00:00Added an answer on May 23, 2026 at 1:51 pm

    I suspect that some log10(a) is outside the range [0,3]. In that case, you can simply do something like

    bins<-seq(min(log10(a)), max(log10(a))+1, by=0.2)
    

    This ensures that all the values are within the bins.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I couldn't figure out the reason why i get this error while i try
I get a shmget: Invalid argument error while i try to execute this part
I get the following error while I try to delete a row while looping
getting error while try to start service
I need to write a delegate function that can 'wrap' some while/try/catch code around
While we try to set up as many unit tests as time allows for
I've been struggling for a while with this one; I'll try to explain it
My application is raising an unauthorized access error. While running my application, I try
Basically I want to create a rock solid server. while (keepRunning.get()) { try {
I am getting an error in my code while i try to show the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.