For questions related to the formatting of the x-axis in a plot
Questions tagged [x-axis]
332 questions
0
votes
0 answers
How to change the x axis order in boxplot of a dunn_test() or any post hoc result of 3 groups? Incorrect order of p values between groups
Following the example in this question: R: problems plotting p-values from conover test (Dunn's works fine)
#…
0
votes
1 answer
Changing order in x axis with multiple factors
I created a plot with the mean values of different factor levels, but for the categorical factor (Pretreatment) I want it in the order None-Mortar-Discs, instead of the automatically alphabetical order Discs-Motar-None. Here is the code and a…

David Moldes
- 25
- 4
0
votes
2 answers
Is there a way to add section labels to the x-axis of a plot using ggplot2?
G'day,
I have a bunch of data which can be grouped. I want to display those data in a plot.
Nothing special so far. But i have stumbled over the problem of displaying the data in a way, that signals their grouping. What i want is header for each…

Lenman55
- 27
- 4
0
votes
0 answers
How to use plt.subplot for a table where the desired y axis are index values and desired X axis are feature names?
For example, I calculated a table as in the image. And I want to get 12 charts in the same area (4*3) So the first row will be for X, and the second row will be for y, third row for z and forth row for z.
The first column will be for the plot where…

BT K
- 1
- 1
0
votes
1 answer
How to add another label level to the x-axis
I am trying to put a secondary axis on a plot. The first x axis display the day of the month. I would like the label of the secondary axis to be the month name and to be displayed below.
For my first axe I…

Laetis
- 1,337
- 3
- 16
- 28
0
votes
1 answer
x-axis tick labels unequally distributed after rotation
In this lollipop / stem plot showing an index value for two categories (left/right) per participant, the x labels are unequally distributed in relation to the x-ticks after rotating the labels:
Before rotating:
x-labels are not legible but centered…

Eva
- 1
- 1
0
votes
0 answers
How do you remove white space from inside a ggplot figure?
I'm trying to remove the empty space between the start of the data lines inside this graph and the axis. The min for the x axis is 25 but if I make that the lower xlim it still keeps that space, and if I make the lower xlim 50, there is also still a…

Lauren Diaz
- 75
- 5
0
votes
1 answer
How to add a secondary axis tick label in ggplot2 R?
df <- data.frame (yaxis = rnorm(120,5,1),
xaxis = rep(c("A - S. longishname","B - S. longishname","C - S. longishname","A - S. short","B - S. short", "B - S. med"), 20))
ggplot(df, aes(x = xaxis, y = yaxis)) +…

Share
- 395
- 7
- 19
0
votes
0 answers
Fractions in the Y-Axis for WPF LiveChart package
I have WPF project which handle bookings and reservations for barber-shop. When running the project and clicking the "Stats" button (ButtonThird-Click) as shown below, a chart of employee performances is displayed. I am using LiveChart wpf tools.…

Musta_Jaguaari
- 5
- 1
- 5
0
votes
1 answer
How to add subscript to ggplot axis title when title starts with bracket symbol
I've looked on SO and haven't found this exact issue or solution for this.
I am trying to label my x-axis: [NO3 + NO2] (mu mol L ^-1); where the 3 and 2 are subscripts, the mu shows as the symbol and the -1 is a superscript.
I think my main issue…

FishyFishies
- 301
- 3
- 14
0
votes
1 answer
Changing extent of x axis (remove a year) in R
I am trying to remove a year from a time series graph I have. Despite having no data for that year, when I plot it I have a gap for the year from which I don't have any data.
A representation of the data I want to plot is in the attached…

user18725416
- 3
- 1
0
votes
1 answer
How do I make a plot with unevenly spaced interval on the x-axis?
Is there a Python function for making a plot with unevenly spaced intervals on the x-axis, or how could I make the x-axis look like the image above?
I tried to add separate traces using plotly, but the interval between each tick on the x-axis is…

Chenyue Ren
- 1
- 1
0
votes
1 answer
Highcharts Gantt change first day of the week
I use Highcharts Gantt charts and I need to change the first day of the week displayed on the X-Axis.
By default, the week starts on Monday but I need the week to start on Wednesday (until next Tuesday).
How can I achieve that ?
On the following…

vegaelce
- 115
- 6
0
votes
2 answers
Barplot with double x-axis labels
I need to build a barplot showing the sold qty of three different services on a weekly basis. I need to add as x-axis label either the calendar week and the month.
See the image for an example:
Here is my code:
sample <- data.frame(service_type =…

romina
- 11
- 2
0
votes
1 answer
rotating x labels in subplots
this is my code:
fig, ax = plt.subplots(1,2, figsize = (30, 8))
g1 = sns.lineplot(data = plsWeekly , x = 'Date', y = 'Close', ax=ax[0])
plt.xticks(rotation=70)
g2 = sns.lineplot(data = asxWeekly , x = 'Date', y = 'Close',…