All Questions
51
questions
0
votes
1
answer
19
views
Stacked line graph while preserving the visualization of each (separate) line graph
I have the following data.table:
> df
# A tibble: 18 × 3
std near off
<dbl> <dbl> <dbl>
1 0.3 0.849 0.904
2 0.4 0.850 0.916
3 0.5 0.859 0.924
4 0.6 0.872 0....
2
votes
5
answers
588
views
Shading below line graph in R
I have a line graph time series and I wanna make a filling color red for positive y values and blue for negative y values. How can i do it using polygon function because iam not using ggplot?
Thank ...
0
votes
1
answer
54
views
matplotlib pyplot display ticks and values which are in scientific form
I have a plot which looks like this:
The values displayed on the blue line are the cost ratio.
The corresponding code looks like this:
fpr=[some values]
tpr=[some values]
CR =
plt....
0
votes
1
answer
158
views
How to include min and max value pf a particular variable in r ggplot
I have tried many things but was not able to include the min and maximum value of GDP in each countries line graph.
0
votes
1
answer
158
views
Strange Line Graph Output - Python
I'm fairly new to Python and I've come up with an issue on a plot. Can someone explain why this line graph would connect this way? It seems like I am missing a key step in sorting the variables.
To ...
1
vote
1
answer
192
views
How to set the axis of symmetry for a line graph and scale the image adaptively around the axis of symmetry in Matlab?
I have some data about how Apples exchange to Oranges in 5 periods in a market.
Period = 1:5;
Apple = [1 2 6 20 3];
Orange = [20 4 15 1 18];
Apple2OrangeExchangeRate = Apple.\Orange
plot(Period,...
1
vote
1
answer
393
views
Plot multiple line graphs on the same window with auto-assigned different colors
I want to create a vector of functions with two parameters where one parameter is over a continuous range of values and the other runs over a fixed number of numerical values saved in the column ...
0
votes
0
answers
499
views
How can I plot a single line that changes its color per y-value interval or label?
I would like to plot one line graph. And the line has to change color based on the y-value. so for example:
red = 0 - 0.5
blue = 0.5 - 1
green = 1 - 1.5
black = 1.5 - 2
But I have also tried to make ...
1
vote
2
answers
2k
views
Plot multiple line graphs on one graph
I can get a single power curve shown below but I want to create a power analysis graph. I want to change my delta value (to .6, .7, and .8) and plot those 3 other lines on that same r curve in a ...
0
votes
0
answers
272
views
How to plot 3 categorical variables in R ggplot
I need to create a plot displaying the associations among 3 categorical variables, let's call them exposure, mediator, and outcome.
I want a line to go from +1 of the exposures to +1 of the mediators ...
0
votes
1
answer
354
views
Plotting line graphs in matplotlib with correct dates
I have been struggling with this for a few days and I feel like it's something really simple that I am missing. I thought I would reach out and hopefully someone can help me. All I am trying to do is ...
0
votes
1
answer
418
views
Adding spaces to ggplot line graph
I have in total 39 weeks worth of data on mean strength and agility.
However on week 10, no data was collected.
When I plot my line graph to show this data, how would I put an empty spacing to ...
0
votes
0
answers
102
views
How can I make an equal distance between the years of the x-axis on a df.plot()?
I want to make an equal distance between the years of the x-axis, however currently the distribution between 2007 and 2014 is very small and between 2014 and 2015 really big. How can I make the ...
0
votes
2
answers
734
views
Plot two line graphs in same figure with different colours and x and y axis ranges are fixed
I have two lists like this
l1= [2, 8, 5, 19, 15, 23]
l2= [3, 5, 8, 11, 14, 50]
Now I want to plot line graph this where the Y axis will be having range 0 to 50 and X axis will be having range from 0 ...
0
votes
1
answer
359
views
How to plot multiple line graphs by weekly in python
if I have data in <class 'pandas.core.frame.DataFrame'> as the following example
So, I try to plot multiple line graphs in the same axis by separating them by weeknumber and named the axis with ...