Giovanni Marco Dall'Olio committed 095dbb4

PIES: fighting (unsuccessfully) for pie charts

Comments (0)

Files changed (2)

Add a comment to this file


Binary file modified.


         opts(axis.text.x=theme_text(angle=45, hjust=1, vjust=1 )),
 #        opts(axis.text.x=theme_text(angle=90, hjust=0.4 )),
 #        coord_polar(theta='y'),
-        scale_x_discrete("answer"),
-        coord_polar(theta="y") 
+        scale_x_discrete("answer")
 #        coord_polar() 
 plot_labels = rev(c("Too long", "Just right", "Too short"))
 feedback.length.long$answer <- factor(feedback.length.long$value, levels=plot_labels)
 qplot(data=feedback.length.long, fill=answer, x=answer, main=paste(plot_title, "(Bar charts)")) + barchart_plot
-qplot(data=feedback.length.long, x=answer, stat="bin", fill=answer, main=paste(plot_title, "(Pie charts)")) + pie_plot
+ggplot(data=feedback.length.long, aes(x=answer, fill=factor(answer)), main=paste(plot_title, "(Pie charts)")) + pie_plot + coord_polar(theta="y")
 ggplot(data=feedback.length.long) + violin_plot + scale_y_continuous("answer", breaks=1:length(plot_labels), labels=plot_labels) + ggtitle(paste(plot_title, "(Violin plots)"))
 ggplot(data=feedback.length.long) + student_barchart_plot + ggtitle("Distribution of answers by student (Length of Lectures and Talks)")
 ggplot(data=feedback.length.long) + student_violin_plot + scale_y_continuous("answer", breaks=1:length(plot_labels), labels=plot_labels) + ggtitle("Distribution of answers by student (Length of Lectures and Talks)")
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.