I calculated following data frame of maximimum response time of a server with pre-defined number of simultaneous connections:
> print(summary_data)
max no_of_threads
1.1801799 10
1.0883594 20
0.9556356 30
0.9130625 40
3.2130118 50
1.1573432 60
When I plot this dataframe with ggplot using geom_bars(), I get a plot with bars as intended:
h <- ggplot(summary_data, aes(no_of_threads, max))
h + geom_bar()
However, when I create a line on this graph with geom_line(), ggplot generates an empty plot with no line in it:
h + geom_line()
How to plot my small dataset as a line graph using ggplot?