Linked Questions
22 questions linked to/from Customize axis labels
0 votes
1 answer
1k views
How do I display just one value in the x-axis in ggplot2?
I have a dataset that contains the following values order_dates Sales in Dollars 1 50 10 2 50 15 3 50 20 4 50 30 5 ...
1 vote
1 answer
471 views
Adding dummy values on axis in ggplot2 to add asymmetric distance between ticks
How to add dummy values on x-axis in ggplot2 I have 0,2,4,6,12,14,18,22,26 in data and that i have plotted on x-axis. Is there a way to add the remaining even numbers for which there is no data in ...
0 votes
1 answer
317 views
ggplot missing plot with x-axis factor
The following works fine: my_df <- data.frame(x_val = 1:10, y_val = sample(1:20,10), labels = sample(c("a", "b"), 10, replace = T)) ggplot(data = my_df, aes(x = x_val, y = y_val)) + ...
0 votes
1 answer
303 views
How to adjust parameter labels in plot.stanfit()?
I am using rstan to estimate a model. After the sampler runs, I use plot() to produce a plot of point estimates and uncertainty intervals for the estimated parameters. However, it uses the "ugly" ...
0 votes
1 answer
210 views
Different X-Coordinates than the X variable used in ggplot
I am plotting some values (y) across a continuous variable (window) but I would like to change the values on the x-axis to a value class variable (chr) that works as a group variable (one 'chr' value ...
0 votes
1 answer
79 views
How can I change axis label in ggplot?
I created a histogram in R. At the moment, the numbers 1 - 8 are written on the x-axis (for each number a bar). I would like to change the numbers into the wind direction, e.g. instead of 1, there ...
0 votes
0 answers
28 views
How do I change labels in a graph? [duplicate]
I have created a graph that shows the estimated regression coefficients and 95% confidence intervals for each school for four variables. Here is the code for it: library(tidyverse) library(broom) ...