Questions tagged [line-plot]

Line plot is a way to represent a series of data by plotting them on two- or tridimensional area and connecting respective data points with lines.

391 questions
0
votes
0 answers

Unable to get a line plot with Grafana's 5.2 release running with InfluxDB, ok for histogram

[enter image description here][1]I am working with the Grafana’s 5.2 and InfluxDB 1.6.0. Grafana gets the data from InfluxDB but I am unable to obtain a line plot for the points, on the other hand Grafana has no problem producing an…
M.Meleu
  • 1
  • 1
0
votes
1 answer

Python Matplotlib line plot: change line color in the middle

I am trying to plot a continuous line from a series of coordinates but I would like to change the line color at specific junctures. Input arrays: layerdict['Xc'] = [50.6, 69.4, 69.4, 50.6, **50.6**, **50.2**, 69.8, 69.8, 50.2, **50.2**, **69.053**,…
Polyhedronic
  • 63
  • 1
  • 1
  • 10
0
votes
1 answer

Seaborn weighted average line for KDE plot

Does anyone know how to add a reference lineplot into a kdeplot that represents the median for each x value. I tried to smoothen it applying a convolution with a hamming filter but it doesn't look to good.
Oliver Prislan
  • 320
  • 4
  • 12
0
votes
0 answers

Plor with R - ggplot - Line Plot - Chemical Analysis - Schöller Plot

I want to do a line plot with R similar to the way Excel is plotting it: Can somebody help me how I can do this with ggplot? This is the code to have the same dataset as in the picture: id = c(1,2,3,4) Na = c(600,1100,2500,400) Ca =…
A_beginner
  • 69
  • 4
0
votes
0 answers

Python Matplotlib: Large dataset that is cyclic. How can I make the shade of the color darken with index?

I'm plotting large data sets. The data is cyclical. Without using a color gradient, it is very difficult to understand how the data is evolving because of it's cyclical behavior. Multiple data sets are plotted at once, so asking a data set to…
0
votes
1 answer

reorder legend of multiple line plot with segment using ggplot2

I have a multiple line plot with a segment of each line highlighted the same way as discussed here. Here is the reproducible example: df <- data.frame(x = 1:100,y1 =…
Pulsar_534511
  • 98
  • 1
  • 13
0
votes
2 answers

Rotate Line graph in R

I am trying to create a line graph with rotated x and y axes. This is what my graph looks like, but this is what I want I am using the basic plot function in R as I am unfamiliar with ggplot2. My code thus far…
0
votes
0 answers

How to create an animated line plot in R from text file?

I want to create an animated plot from a text file with two columns: x = timepoints, y = values. time values 0 -70.627 1e-5 -68.5964 6e-5 -67.6575 1e-4 -66.6575 1.1e-4 -65.627 0.882119999999 -67.0542 0.882129999999 …
bio8
  • 176
  • 2
  • 15
0
votes
1 answer

How to plot arrays in C#?

I need to plot y1 against t1 in C#; these are my array. can you please tell me how can I do that? I'm Very new to C# and I don't know it well. Thanks here is my codes: using System; using System.Collections.Generic; using System.Linq; using…
Mahan M.
  • 11
  • 3
0
votes
1 answer

Repeat values in x-axis matlab

I'm trying to create a plot about crimes in my city per 100000 inhabitants (the plot 1 above), x-axis is the year of the crime and y-axis the crime per 100000 inhabitants. I've a problem with x-axis because it repeat the years. How can i avoid it? I…
SergioSalinas
  • 115
  • 1
  • 2
  • 11
0
votes
1 answer

How to add a curved fit lines to points for multiple variable data?

I am trying to graph expected values and actual values, over time. I have some data that I'd like to get all on one graph. I am still pretty new to R, I keep getting stuck. So far I have been able to get what I want on separate graphs, or if I get…
nxl14
  • 3
  • 2
0
votes
1 answer

Label the points as date in the proper format in ggplot in R

I am plotting a line chart using ggplot2 in R. I want to name the points above a certain threshold in the proper date format. My code for plotting the graph is: ggplot(DateSubset1, aes(TimeStamp)) + geom_line(aes(y = CPU, colour = "Orange"))…
0
votes
2 answers

Straight line being added to line plot?

I am trying to plot minimum and maximum temperatures, and with a normal dot plot (using pch = 16) it looks normal, but when I change the plot type to line (using type="l"), it adds a line that seems to connect the first and last values. Is there a…
kslayerr
  • 819
  • 1
  • 11
  • 21
0
votes
1 answer

Line partially not plotted

Problem: Plotting a closed 2D polygon works fine. When I try plotting it 1D (by replacing the second dimension with a constant), it fails in some special cases: Then the polygon (which becomes a line) is not drawn completely. What I…
nitzel
  • 1,565
  • 14
  • 14
0
votes
2 answers

How to draw a field area plot using ggplot2 in R

I have a data frame and I wonder how to plot a line using "max" (in red) with a filled area (in blue), and then add a second line using "min" (in green). Thanks a lot. The x-axis is "x". df <- data.frame( x =…
Yang Yang
  • 858
  • 3
  • 26
  • 49