How can I add a vertical line to a line graph in excel? - excel

I have a list of years from 2019-2098 that I want to be the x-axis values. The y-axis will be from 0 to 1 for probabilities. The line graph will measure the survival probability curve in relation to years. The issue is that I need a vertical line to reside on the mark for year 2042. Is there a way to do this? Everything I have found online doesn't work! The photo is what I get from doing an online example. It produces a vertical line but not in the correct spot.

You could add a separate data series that consists of (2042,0) and (2042,1).
Graph them as a scatterplot on top of your existing data. If needed, go to Change Chart Type and set the appearance to connect the two points with a line where the points don't show. Example: Scatter plot without points showing.

Related

How to align graph and the access in Excel

So I really dislike formatting in Excel. When you have a scattered plot and lines that connect the scatter how do you get the labels to align with the month labels?
This one is unaligned.
This is aligned (note this image has been altered in an image editor)
I have tried to edit the date for the points, such as making it all the first of the month or the end of the month, but that didn't work.
You can get better alignment between the tics and the data points when using the Line graphs. Scatter plots are designed to be at the measure locations. So change to line graphs.

Excel Boxplot Create a horizontal Line

is there a way to create a horizontal line in a boxplot?
so i have this boxplot and i want to get the orange line in the first boxplot with the y-axis 00:30 as a horizontal line. Is that even possible?
Edit:
so i have some data like that:
and now i want to create a horizontal line which is 30 minutes so my boxplot should look like this:
so normally it is one boxplot, because i filtered it
I tested an example with your needs. I used two charts and stacked them on top of each other.
The first graph has your data, while the second graph has the average.(I am not an expert in excel).
The data
The First graph
The second graph
In this graph I removed the background (transparent). After "them combination" i removed the axes.
The Final Graph
Then you can merge the two graphs so they always stay aligned.

How can you remove/add specific grid line in excel diagram?

So, I want to keep only 1 red axis line. By default it shows or removes both of them, shows 1 line for each "row".
Don't know how to change my excel to english, sorry.
You need to use some tricks for this. Use an XY Scatter chart and plot the two lines as two series, one for the horizontal line, one for the vertical line.
Then format the axes to the desired maximum and remove all the grid lines.
If you want only specific numbers to show on the axes, remove the axis labels altogether and use data labels for data points instead.

How can I customize the horizontal axis values in excel?

So I am trying to make a nice line graph for some data that I have. Each line has 100 data points, so excel automatically makes the horizontal axis from 1-100. I want to change the min/max values for the horizontal axis from 0-1, without moving the frame of the graph (i.e. without zooming in the graph). I just want to divide the horizontal axis numbers by 100 in order to rescale the time. This is what my graph looks like now:
http://imgur.com/33KD7RY
So I want to change the numbers on the horizontal axis to be fractions or decimals in the range [0,1]. Does anyone know how I can do this, or any other graphing software that would allow me to do this (I have tried using google sheets, but they have less options to customize axes than excel). Thank you!
Did you use two column to plot one line and did you use the Scatter with smooth lines chart type?
Have one column (X) go from 0 to 1 using intervals of 0.01 and your data in your second column (Y). When using a scatter with smooth lines chart type your answer should look like this:
image graph
Plotting your second line in the same chart can be done the same way by adding it through the 'select data' options of the chart.

Highlight points on an Excel Line Graph according to a list

I have 2 data series, which records how much a user is meditating/attentive (out of 100) plotted onto a graph. The x axis is the number of seconds since the start of the experiment, and the y axis shows the value for meditation/attention at that point of time.
I have a 3rd set of data that is a series of key timestamps during the experiment (not exactly matching the timestamps from attention/meditation values).
I want to create a graph where you can compare how the attention/meditation values change at the key points
Whether the key points are highlighted by a line or dots I don't care. I tried adding the 3rd data set as a secondary axis, but it still uses the original x-axis of the main graph and I don't know how to make excel do what I want.
Thanks in advance
You should use an XY Scatter chart, not a line chart. A line chart ignores any numerical value in the X values, treats each X value as a text label, and uses the X values from the first series as X values for all series.
You can format the first two series so that they use lines and not markers, and the third so it uses markers without lines.
You may find this link helpful: superuser.com/questions/825692 You don't need to use the secondary axis, just add another series with tag times and constant 45 value, then format vertical error bars to 100% and horizontal to 0%.

Resources