## How are R Line Graphs useful?

a) They show trends over time by connecting data points with a continuous line

b) They display the proportion of categories as slices of a circle

c) They compare the frequency of categorical data

d) They show data distribution along a numeric axis

### Answer:

a) They show trends over time by connecting data points with a continuous line

### Explanation:

R line graphs are useful for showing trends over time or the relationship between two continuous variables by connecting data points with a continuous line. Line graphs are commonly used in time series analysis to visualize how a variable changes over time.

```
# Creating a line graph in R
time <- c(1, 2, 3, 4, 5)
values <- c(2, 4, 6, 8, 10)
plot(time, values, type = "o", col = "red", xlab = "Time", ylab = "Values", main = "Line Graph Example")
```

In this example, a line graph is created to show the relationship between time and values. The `plot()`

function is used with the `type = "o"`

argument to create a line graph where data points are connected with a line. Line graphs are particularly effective for identifying trends, patterns, and changes over intervals.