R直方图具有不等的中断和相同的宽度

时间:2017-11-10 14:52:18

标签: r statistics histogram

我目前有一个直方图(参见图片),其中我给出的参数打破了一组间隔不等的值(参见下面的示例代码)。这导致箱宽度不均匀,我只是想知道是否有办法使箱子宽度相等,同时通过调整现有代码来保持中断。这只是为了让它看起来更好看。理想情况下,我也想继续使用hist()函数。

var elasticsearch = require('elasticsearch');

var client = new elasticsearch.Client({
   host: 'localhost:9200',
   log: 'trace'
});

client.search({
    index: 'products',
    type: 'product',
    body: {
        query: {
            bool: {

            }
        }
    }
    }).then((body) => {
        return body;
    }, (error) => {
        console.trace(error.message);
    });

histogram

0 个答案:

没有答案