Questions tagged [yaxis]

For plotting questions related to adjusting the y-axis.

528 questions
8
votes
6 answers

How to hide y axis?

I plot a horizontal boxplot in MATLAB -- boxplot(y, group,'orientation','horizontal'), and then hide the y-axis using set(gca,'box','off','ycolor','w'). It looks fine on the screen - only the bottom x-axis is visible. But whenever I save the figure…
Rory
  • 341
  • 1
  • 5
  • 14
7
votes
2 answers

ggplot: Boxplot by several categorical variables

I am trying to plot several boxplots in one chart using ggplot2. I have 1 continuous variable and several factors. I would like to have a single Y axis and each pair of boxplots to have their own x axis with their own factor levels. So far, I tried…
user2053921
  • 73
  • 1
  • 4
7
votes
1 answer

Matplotlib: imshow with second y axis

I'm trying to plot a two-dimensional array in matplotlib using imshow(), and overlay it with a scatterplot on a second y axis. oneDim = np.array([0.5,1,2.5,3.7]) twoDim = np.random.rand(8,4) plt.figure() ax1 = plt.gca() ax1.imshow(twoDim,…
Chris
  • 721
  • 1
  • 10
  • 23
7
votes
2 answers

ggplot2 (Barplot + LinePlot) - Dual Y axis

I am having a really hard time recreating an excel example with ggplot2. I have tried numerous examples but for some reason I cannot reach my desired result. Can someone please have a look at my example? df <- structure(list(OccuranceCT = c(4825,…
Cosmin
  • 565
  • 1
  • 8
  • 33
6
votes
1 answer

Octave: Add secondary y axis to existing plot

I am using Octave 4.2.1 portable under Win 10. I have several plots in a single chart, with a single y axis, each one created with a plot(...) sentence. I want to add a plot in a secondary y axis to this existing plot, not creating from the…
6
votes
1 answer

R | ggplot2 | (remove tick marks + remove panel border) but keep axis lines

novice user here so please be kind and gentle! :) I am dealing with the following dataset and R script: #Create pvalue ranges pvalue <- c(".000 - .005",".005 - .010",".010 - .015",".015 - .020",".020 - .025",".025 - .030",".030 - .035",".035 -…
James F
  • 65
  • 1
  • 1
  • 5
6
votes
2 answers

Echarts3.0 display percent on y-axis in stacked bar chart

Using Echarts3.0 in Vuejs2.0 component, I am trying to assign percent on y-axis in a stacked bar chart. I tried boundaryGap, splitnumber, etc, but none of them worked. But i cannot achieve it, Anyone has idea how can i get % on y-axis? export…
WonderHeart
  • 678
  • 10
  • 28
5
votes
2 answers

Multiple y axis for bar plot and line graph using ggplot

I have some transpiration data from an experiment that I would like to show as a time series on a line graph using R. I also have some precipitation data which I would like to show on the same graph as a bar plot. I've been able to do this using R's…
A.Benson
  • 465
  • 1
  • 6
  • 16
5
votes
3 answers

Highcharts Plot Reciprocal Values For Column Height

I am trying to plot a categorical multi axis column chart of rankings. The number 1 ranking should be the tallest column and lowest ranking the shortest. Essentially I would like the height of the bar to be it's reciprocal. It is very close…
Bryan
  • 17,201
  • 24
  • 97
  • 123
4
votes
2 answers

Plot with 2 y-axes : reversing the first one but not the second

First, I plotted a line chart of Depth in function of Age. Then, I added a second y-axis : Sedimentation Rate. The problem is that my first y-axis (Depth) should be reversed, going from 0 (top) to 310 (bottom). But the second y-axis have to be…
Mlp
  • 41
  • 1
4
votes
1 answer

Recharts Y-Axis interval issue

I am using Recharts Library for the graph in the ReactJS. There is one strange issue of setting intervals for the Y-Axis. There are few options available "preserveStart" | "preserveEnd" | "preserveStartEnd" | Number. For me, this is not working. I…
Sunny Vaghadia
  • 553
  • 2
  • 6
  • 17
4
votes
1 answer

Python Seaborn FacetGrid different y-axis

I'm using sns.FacetGrid to plot 10 subplots. I'd like to flex the y-axis to be different for each subplot. At the moment it automatically uses the same for all subplots. Would it be possible to customize it to make it more specific for each subplot?
Dany
  • 43
  • 1
  • 3
4
votes
1 answer

Error "NAs are not allowed in subscripted assignments" while using Squash_axis in ggplot2, with dataset without NA-values

I want to skip part of my y-axis for a dataset with most values between -10 and 100, and then a few at 400 again. So I want to squeeze this empty area. I already am using facet grid in my plot for 3 different scenario's, so I would prefer to just…
4
votes
1 answer

ggplot of 2 ts-objects (time series) with 2 y axes (secondary y-axis)

I want to plot 2 ts-objects as bars and lines, respectively, using 2 y-axes. How can I do this in ggplot? I have 2 ts-objects: one is the value of a variable, the other is the annual change. The data are monthly. I would like to plot both ts-objects…
Isabel
  • 95
  • 5
4
votes
1 answer

ggplot2 facet_grid create panels on the y-axis

I have similar data like the following example: dat1 <- data.frame(group=c("a", "a","a", "a","a","a","b","b","b","b","b", "b", "b","b","b","c","c","c","c","c","c"), subgroup=c(paste0("R", rep(1:6)),paste0("R",…
1
2
3
35 36