2017-05-31 11 views
0

ボックスプロットを作成しました。私は1000以上の行を持っていますが、私がそれらをプロットしているとき、それは少数のエントリーしか示していません。ボックスプロットのすべてのデータをプロットできません。

データセット: https://www.dropbox.com/s/tgaqfgm2gkl7i3r/maintenance_data_updated.csv

#Start of Box plot Temperature 
    training_data <- read.csv("C:/Users/akhan/Documents/maintenance_data_updated_2.csv", stringsAsFactors = TRUE) 
    library(dplyr) 
    dt_temperature <- select(training_data, Runtime, Defect, Machine, Temperature, Plant) 
    dt_temperature$Machine_Plant = paste(dt_temperature$Machine,dt_temperature$Plant,sep = "_") 
    attach(dt_temperature) 
    class(Temperature) 
    class(Defect) 
    class(Runtime) 
    class(Machine) 
    ?boxplot 
    boxplot(Temperature ~ Machine_Plant) 

電流出力:https://www.dropbox.com/s/7nv5n80en1vpkyt/Rplot01.png

は、誰もが解決策は何かヒントをお願いできますか?

+0

Machine_Plant変数が重要なのですか?試してみてください:boxplot(温度〜as.factor(Machine_Plant)) –

答えて

0

「いくつかのエントリしか表示されません」とはどういう意味ですか? lasパラメータの詳細は、

boxplot(Temperature ~ Machine_Plant, las=3) 

タイプ

?par 

:あなたの問題は、X軸に注釈を付けのみ4箱ひげ図を持っていることについてであるならば、解決策は、このようなことができます。

+0

ありがとうございます。それは解決しました:) –

関連する問題