Questions tagged [stripchart]

R stripchart produces one dimensional scatter plots (or dot plots) of the given data.

stripchart produces one dimensional scatter plots (or dot plots) of the given data. These plots are a good alternative to boxplots when sample sizes are small.

46 questions
6
votes
3 answers

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

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…
Farrel
  • 10,244
  • 19
  • 61
  • 99
4
votes
2 answers

R boxplot and stripchart side-by-side in 1 figure

Is it possible to plot a boxplot and a stripchart next to each other in the same figure? If I run this code, the stripchart overrides the boxplots. What i actually want is that they lay next to each other. In hat way a figure with 10 column on the…
Lisann
  • 5,705
  • 14
  • 41
  • 50
4
votes
3 answers

Define color for each datapoint in a stripchart separately

I would like to define the color of each data point on a stripchart separately to add an extra information layer on the stripchart. I did not find a solution I am aware of Different coloring of groups in R plot, and the answer suggests it is not…
bud.dugong
  • 689
  • 7
  • 16
3
votes
2 answers

Is Python ever supposed to crash?

I am running a stand-alone Python v3.2.2/Tkinter program on Windows, not calling any external libraries. Idle has been very helpful in reporting exceptions, and the program has been debugged to the point where none are reported. However, the…
Dave
  • 3,834
  • 2
  • 29
  • 44
3
votes
2 answers

how to make the boxplots with dot points and labels?

I have a dataframe as below G1 G2 G3 G4 group S_1 0 269.067 0.0817233 243.22 N S_2 0 244.785 0.0451406 182.981 N S_3 0 343.667 0.0311259 351.329 N S_4 0 436.447 0.0514887 371.236 N S_5 0 324.709 0 293.31 …
ivivek_ngs
  • 917
  • 3
  • 10
  • 28
2
votes
1 answer

How do you add a line segment to a stripchart in R?

This is likely a very easy question, but I'm not great with R and haven't found a simple answer elsewhere on the internet. I want to add a line segment connecting the two points in this stripchart, but cannot figure out how to do…
leecarvallo
  • 171
  • 4
2
votes
1 answer

Re-arrange stripchart x-axis

This is my graph code, it's supposed to be high, medium, low but at the moment its high, low medium. Is there anything I can add to this to make it this way? stripchart(data$Rel.abun.Chaemae ~ data$Shore.Position, vertical = TRUE, …
2
votes
7 answers

Quick and dirty stripchart in python?

I have some python code that receives a message every so often containing a timestamp and an edge transition, either low-to-high, or high-to-low. I'd like to graph each transition on a stripchart for a quick and dirty visualization of the digital…
Jorenko
  • 2,594
  • 2
  • 21
  • 26
2
votes
1 answer

How can I eliminate extra space in a stripchart in base R?

I have created a stripchart in R using the code below: oldFaithful <- read.table("http://www.isi-stats.com/isi/data/prelim/OldFaithful1.txt", header = TRUE) par(bty = "n") #Turns off plot border stripchart(oldFaithful, #Name of the…
Drewby
  • 23
  • 5
2
votes
1 answer

How to use stripchart() in R?

I have problems to use stripchart() with the right placement of X- and Y-axes and with the correct direction of the stacked points. This MWE imitates the steps I do with my real data # stratify mtcars$mpg_strat mtcars$mpg_strat <- cut(mtcars$mpg,…
buhtz
  • 10,774
  • 18
  • 76
  • 149
2
votes
1 answer

stripchart by groups in R

I am still a newbie to R and would like to ask for help in graphing stripcharts. stripchart(Study_intensive$AGE, method="stack", at=c(0.05), pch=20, cex=2, xaxt="n", frame.plot=F, main= "Age Range in weight group(yr)") axis(1, at=seq(0, 75, by=5) ,…
Monklife
  • 177
  • 3
  • 9
2
votes
1 answer

Plot factor levels side by side within stripplot()

I am trying to compare nutrient element values (N, P, K, etc.) from several trials, using the stripplot() plotting function. I want to see the individual values side by side for each nutrient, not in separate plots for each trial, so that…
Ezra Citron
  • 101
  • 2
  • 6
2
votes
0 answers

Coloring datapoints in categories - Stripchart R

I'm a new programmer in R, making an attempt at a StripChart (I have too few data points in each category to display my data as a boxplot). I would like to get my stripchart categories to be colored individually, rather than coloring each individual…
Ali
  • 21
  • 2
2
votes
2 answers

specific stripchart with ggplot2

I've got this dataframe df <- structure(list(rang = c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25.5, 25.5, 27.5, 27.5, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42.5, 42.5,…
CHK
  • 75
  • 8
2
votes
1 answer

Change spacing between columns in graphics::stripchart

I am new to R and I have been trying to figure out how to decrease the distance between data in a stripchart. I want two categories on the x-axis to be closer together. Here's the code I used: stripchart(Ct ~ NugentScore, data = Avagdata, vertical…
1
2 3 4