을 ggplot2
에서 사용하여 분산 형 플롯을 만듭니다. x 축에서 모든 값을 볼 수 없습니다. 또한 X 축에서 NA
을 제거합니다. NA
을 유지하고 x 축에 표시된 피쳐의 수를 제어하는 방법은 무엇입니까?qplot을 사용하여 gplplot2 scatterplot에 NA가 표시되지 않습니다.
rate_plot = qplot(Result$temp, Result$CR, main="Rate", xlab=feature, ylab="Rate", size=I(3))+
scale_x_discrete(drop=FALSE)
데이터 : 사용자 정의 진드기 및 라벨 우리가 scale_x_continuous을 사용할 수 있습니다에 대한 Google Docs link
Result <- read.table(text = " temp NCH type CH i.type CR
1 NA 1878464 nochurn 549371 churn 0.226280204
2 1.87 2236 nochurn 4713 churn 0.678227083
3 2.14 4945 nochurn 8530 churn 0.633024119
4 2.25 423 nochurn 972 churn 0.696774194
5 2.79 3238 nochurn 7692 churn 0.703751144
6 3.25 266817 nochurn 12678 churn 0.045360382
7 3.33 2132 nochurn 4295 churn 0.668274467
8 5.1 6683 nochurn 7743 churn 0.536739221
9 6 342554 nochurn 21648 churn 0.059439542
10 6.51 1785 nochurn 4764 churn 0.727439304
11 8 13668 nochurn 22751 churn 0.624701392
12 9.85 6005 nochurn 14687 churn 0.709791224
13 11.99 378 nochurn 850 churn 0.69218241", header = TRUE)
? 아마 볼 수 있습니다 [scale_x_continuous] (http://docs.ggplot2.org/0.9.3/scale_continuous.html) – zx8754
올바른 방향으로 나를 가리켜 주셔서 감사. 이제 X 축에 레이블을 더 추가 할 수 있습니다. 그것은 문제 중 하나를 해결합니다. – Shivendra
어떤 문제가 해결되지 않습니까? – Gregor