r - How to customize values on x-axis in qplot()? -
i using qplot
following code.
qplot(topn, f1score, data = evaluation.data, geom = c("point", "line"), color= recommender, main = "f1 score...")
the x-axis topn
, y-axis f1score
. x-axis supposed contain integer values. there's decimals shown in figure. how can customize use integer values?
you can use breaks
argument in scale_x_continuous
.
qplot(topn, f1score, data = evaluation.data, geom = c("point", "line"), color= recommender, main = "f1 score...") + scale_x_continuous(breaks=c(5, 10, 15))
also color guide not seem useful. remove legend.
+ scale_color_discrete(guide="none")
Comments
Post a Comment