0
ggplot2とqplot関数を使用している間にエラーが発生しました(警告とエラーについては下記を参照してください)。働くでしょう。私はこの問題に関連する過去の記事を見ても、まだコードを修正することはできません。ggplot2、qplot、stat_count()に関する警告
誰かが私に助言をくれますか?
> library(ggplot2)
Warning message: package ‘ggplot2’ was built under R version 3.2.5
> dodge <- position_dodge(width = .9)
> plot <- qplot(happening, target.looking_M, data=d.c2.subjects, stat="identity",
+ geom="bar", position=dodge,
+ ylab="Proportion of looks", xlab="happening",
+ fill=happening, colour=happening,
+ main="Proportion target looking by condition and testing phase for each single subject")
警告メッセージ:
1: `stat` is deprecated 2: `position` is deprecated
> plot <- plot + facet_grid(type ~ subjectname)
> plot
Error: stat_count() must not be used with a y aesthetic.
時間をかけて学習してください(必要に応じてIDEスニペットの拡張を使用してください)。完全なggplot2 'geom_'です。 (a)あなたは最終的により良いグラフを作ってくれます。(b)IDEをうまく使います。(c)qplotの例をggplot2から取り除くのにかなりの時間を費やしました。あなたが見ているメッセージのいくつかを考えれば、あなたのR環境(ベースのバイナリーRインストールとパッケージ)をもう少しパリティーに保つようにしてください。 – hrbrmstr