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.
Questions tagged [line-plot]
391 questions
0
votes
1 answer
Matlab - Plot from double data
From an N x 3 matrix with values in third column only having the 4 values 1, 2, 3 & 4, I have to create a bar plot as well as a line plot showing the growth rate for each row (second column values). First row values are called 'Temperature', second…

ElCapitain
- 19
- 4
0
votes
1 answer
ggplot2 R, Fixing much values in axis (Line-plot)
I can't read my y-axis since is has a lot of values. I tried rotating it and it doesn't work like I want, neither is it something I want to do.
I want to specify the values in the axis, to be from say 20 to 30, maybe with step 0.1.
But the length…

Smrow
- 89
- 7
0
votes
1 answer
plot variation of variable with time using ggplot2 in R
I have the following example data:
my.list <- vector('list',1000)
for(i in 1:1000)
{
temp <- sample(c("type1","type2"),1)
my.list[[i]] <- data.frame(time=i,type=temp)
}
df <- do.call('rbind',my.list)
I want to plot the variation of the type…

Imlerith
- 479
- 1
- 7
- 15
0
votes
2 answers
Create a line plot (times series) from a 3d array
I have a 3d array would it be possible to use a library such as ggplot2 in order to get 1 graph where the x dimension is the first element of my array (100,200,300), where the y dimension is the second element of my array (3,4,5). Then the lines of…

S12000
- 3,345
- 12
- 35
- 51
0
votes
1 answer
two line plots using ggplot2. getting error
My df:
> dput(exm)
structure(list(Patch = structure(c(1L, 2L, 3L, 4L, 5L, 6L, 7L,
1L, 2L, 3L, 4L, 5L, 6L, 7L, 1L, 2L, 3L, 4L, 5L, 6L, 7L, 1L, 2L,
3L, 4L, 5L, 6L, 7L, 1L, 2L, 3L, 4L, 5L, 6L, 7L, 1L, 2L, 3L, 4L,
5L, 6L, 7L, 1L, 2L, 3L, 4L, 5L, 6L,…

Shery
- 1,808
- 5
- 27
- 51
0
votes
1 answer
How to draw a line plot in ggplot using a data.frame file?
Thank you for reading. I find that I am unable to draw line plot from my existing data as below:
a=structure(list(ID = structure(1:3, .Names = c("V2", "V3", "V4"
), .Label = c(" day1", " day2", " day3"), class = "factor"),
Protein1 =…

Sadegh
- 788
- 5
- 15
0
votes
1 answer
In R plotting line with different color above threshold limits
I have the following data and code in R:
x <- runif(1000, -9.99, 9.99)
mx <- mean(x)
stdevs_3 <- mx + c(-3, +3) * sd(x/5) # Statndard Deviation 3-sigma
And I plotted as line (alongwith 3 standard deviation and mean lines) in R:
plot(x, t="l",…

Manoj Kumar
- 5,273
- 1
- 26
- 33
0
votes
0 answers
R base line plot -cannot connect each point to a line
I have a problem when drawing line plot using 'plot{base}'
my dataframe looks like:
month.count.success
month result n percent
1 Jan Successful 93 17.71429
3 Feb Successful 934 13.84319
5 Mar Successful 3701…

Jianan He
- 31
- 4
0
votes
1 answer
R: How to plot multiple series when the series is included as a variable?
I want to plot multiple lines to one graph of five different time series. The problem is that my data frame is arranged like so:
Series Time Price ...
1 Dec 2003 5
2 Dec 2003 10
3 Dec 2003 2
1 Jan 2004 …

Jocelyn
- 1
- 2
0
votes
2 answers
Plotting line graph in R with missing data in x-axis
I am very new to R and would like to draw a line graph. I have got as far as importing my data into R and don't really know where to go next! I've searched the internet for examples of how to plot a line graph, but can't find anything that explains…
0
votes
0 answers
Box plot with Line in Matlab
I want to merge a line plot with 12 box plot. I can plot both of them in a figure. But the line plot position is not matching with Box plot. Please suggest. Figure is attached
Code:
clc
clear
[data header]=xlsread('Dry and Wet Spell…

Sohom Mandal
- 23
- 9
0
votes
1 answer
D3 Area chart with specified base/floor
Is it possible to make an area chart in D3 where I can specify what the floor of the area chart is (as another plot).
Something like this:
So instead of the floor being always at Y=0, it's actually a plot derived from y=1.03^X
This is my code:
var…

Tarang
- 75,157
- 39
- 215
- 276
0
votes
1 answer
R: combine barplot and lineplot; line-dots and ticks on the x-axis not aligned to barplot
I want to plot two outcomes of a behavioral psychological experiment in one plot: performance (as measured by % of correct answers) through a marplot and reaction times (in ms) through a line plot.
I've figured everything out except one thing: the…

benedict
- 3
- 2
0
votes
0 answers
Can't create legend for symbol type lineplot in python (reportlab)
I'm using Python's ReportLab library to create pdfs from some data for which I need to create line plots. In these plots, instead of colors, I need to identify different lines by symbols.
For colours, I could simply use :
self.legend.colorNamePairs…

Shaurya Verma
- 1
- 2
0
votes
2 answers
Plotting discrete data as a line graph
I am trying to simulate a real time plot in MATLAB in order to display an ECG signal. I am trying to test my idea with a small data set. I have created a matrix called Y containing values from 0 to 25*pi, and wish to plot sin(Y), with each data…

lindziwiggins
- 17
- 2
- 7