Questions tagged [x-axis]

For questions related to the formatting of the x-axis in a plot

332 questions
0
votes
1 answer

Fitting a discrete X-axis with factors in R/ggplot2 with levels not preserved in the data set

I want to create a group of graphs using RStudio and want the scales to be consistent between all graphs. The graphs were created with the ggplot2 package and the geom_dotplot function. For the x-axis, the values were converted to factors. In the…
mave13
  • 1
0
votes
0 answers

How can I solve these two rotation along the x-axis questions?

Question 1 A) Find the volume V of the solid obtained by rotating the region bounded by the given curves about the specified line. y=5 sqrt(25-x^2), y = 0, x = 1, x = 4; about the x-axis with a sketch of the region/solid form (include disk rotation…
0
votes
1 answer

add multi x-axis ggplot2 or customized labels to stack bar plot

Hei, I am trying to add informations of the depth range integrated (1) on the x-axis or (2) on the top of stack bars of the graph (or something similar). See the pictures below. enter image description here with the labels: enter image description…
Grg Lulu
  • 11
  • 5
0
votes
1 answer

SPSS - how to rescale the x-axis

How to rescale the x-axis in spss? I have a graph like this: I would like to rescale the x-axis from 1 to 5, even if the data for 1 and 5 has 0 percentages. Thank you very much.
0
votes
2 answers

R: Remove range x axis without data (NA) in a graph

I am trying to remove a range of x-axis from a ggplot. My data x represents years and weeks: 202045: year 2020 week 45 202053: last week in 2020 (any year has 52-53 weeks, no more...) summary(df$year_week) Min. 1st Qu. Median Mean 3rd Qu. …
0
votes
0 answers

How to "increase" the number of x labels (dates) with ggplot2 in R

I've used ggplot2 to plot some values on dates. By default, R chose 3 dates (always from January of several years) to label the x axis. So far so good. I now want to "increase" the number of dates that are shown on the x axis but I have over 5000…
0
votes
1 answer

Spacing x-axis based on values in a column using seaborn in spyder

I am using seaborn to generate a boxplot of 5 different conditions and their corresponding values. I want the x-axis values to be plotted in the correct distance from each other based on their actual values instead of evenly spaced out boxplots. I…
Karina
  • 33
  • 5
0
votes
1 answer

Xaxis should get aligned at (0,0) in highcharts

I want to align xaxis line and axis labels at position (0,0) when data contains negative values. ex. consider this fiddle example where negative values bar goes down and xaxis is set at (0,0) http://jsfiddle.net/13d54mp8/2/ var YTD = 'YTD'; …
0
votes
2 answers

Ordering Several factor variables in -axis ggplot

I've seen several questions about the order of x-axis marks but still, none of them could solve my problem. I'm trying to do a plot that counts 10 variables in two different. My variables are a factor , and the structure is something like…
Ali Roghani
  • 495
  • 2
  • 7
0
votes
2 answers

Grafana - Show NON DataTime Date/Time field on X axis

Grafana 6.x/7.x versions, especially version 7.x If I have the following data in an Elasticsearch Index (<--Grafana: which it refers) or flat file (csv) Sprint Velocity: 10 20 15 35 22 -------------------------------------- Sprint Name: …
AKS
  • 16,482
  • 43
  • 166
  • 258
0
votes
1 answer

Rotate x-axis ticks with twinx plot

I'm trying to rotate the x-axis labels by 90 degrees, which typically works with the last line of the category_amts() function below. However, because this is a dual-axis visual, the approach is not working. How do you rotate axis labels on a…
bshelt141
  • 1,183
  • 15
  • 31
-1
votes
2 answers

Customtkinter checkboxes are not starting at the same x axis

I want to make a python todo app with customtkinter. When i create a checkbox which has a longer text everytime something goes wrong and for something they just go away. Here is my code so far: from customtkinter import * from tkinter import…
Illes
  • 3
  • 2
-1
votes
2 answers

X axis missing from barplot?

I have a dataset showing data on all tornadoes that have happened in the US between 1950-2020. I would like to make a barplot showing the total count of tornados by state (st). First, I got the sum of tornadoes by state using: statecount =…
M A
  • 11
-1
votes
1 answer

How to add long text and data to x tick labels using ggplot2

I am trying to replicate the bar plot as shown bellow. Here is an example of the data frame. Where the y variable is tasa and the x variable is year, and the number showed in the text of each x tick label is inscripciones. df <- structure(list(year…
user2246905
  • 1,029
  • 1
  • 12
  • 31
-1
votes
1 answer

Add second x-axis to ggplot

I build this plot: df_ebf <- df_ebf %>% map_df(rev) labels.minor <- c("nie","selten","manchmal", "mehrmals", "oft", "sehr oft", "immerzu") ggplot(data=df_ebf, aes(x=forcats::fct_inorder(Skalen), y=Werte, group="")) + geom_line(color =…
psycho95
  • 131
  • 1
  • 12
1 2 3
22
23