stripchart

Can data points be labeled in stripcharts?

﹥>﹥吖頭↗ 提交于 2019-12-11 10:24:14
问题 I can't find a way to label datapoints in stripchart . Using the text function, as suggested in this question, breaks down when points are stacked or jittered. I have numerical data in 4 categories (columns 2-5) and would like to label each datapoint with the initials (column 1). This is my data and the code I have tried: initials,total,interest,slides,presentation CU,1.6,1.7,1.5,1.6 DS,1.6,1.7,1.5,1.7 VA,1.7,1.5,1.5,2.1 MB,2.3,2.0,2.1,2.9 HS,1.2,1.3,1.4,1.0 LS,1.8,1.8,1.5,2.0 stripchart

Order groups in a stacked stripchart by sum in R

戏子无情 提交于 2019-12-11 06:08:15
问题 I have a grouped and stacked stripchart() in R . stripchart(gear ~ cyl, data=mtcars, method="stack") cyl are the groups here. I want to groups ordered by its sum. From bottom to top the ordering should be 6, 4 and 8. How can I do this automaticly in a stripchart ? 回答1: As mentiont from Jota and with detailed help from How to order factors by condition in R? Transforming cyl into factor and order it's levels. mtcars$cyl <- factor(mtcars$cyl, levels=names(sort(table(mtcars$cyl)))) 来源: https:/

How does one overcome overlapping points without jitter or transparency in ggplot2

强颜欢笑 提交于 2019-12-03 14:33:22
问题 I am starting to use ggplot2. I have some small n (about 30 or so) granular data with lots of overlap. Neither jitter nor alpha (transparency) are suitable. Instead a stripchart with stack and offset do it best but I do not know how to do it in ggplot2. Do you know? To see what the end result should be click on this graphic. Here is the script I used a few years ago. stripchart(SystData$DayTo1Syst~SystData$strain,vertical=TRUE,method="stack",pch=19,offset=.3,xlab="Strain",main="Rapidity of