R, a question about data mining. I'm an R super beginner and asked a similar question a few days ago.
I want to plot the statistics of the imported data from the csv file below on a line graph with ggplot.
If i import a csv file and write it in R, it will be displayed as shown at the bottom. Using this data directly, I would like to plot the "Signal" average on the Y axis and the "Time" as a categorial variable on the X axis.
If i draw the graph with the code below using the data for practice on other websites, the graph will appear properly, so I think there is a problem with the data formatting, but there is something wrong Is it? I would be pleased if someone could teach me.
I wrote the code as follows.
"DT"is the data originally in csv placed at the bottom.
a<ggplot (DT, aes (x = as.numeric (Time), y = Signal)) +
stat_summary (fun.y = mean, geom = "point", size = 4) +
stat_summary (fun.y = mean, geom = "line", size = 1)
a +
xlab ("Time") +
theme (axis.title.x = element_text (color = "Black", size = 25),
axis.title.y = element_text (color = "Black", size = 25),
axis.text.x = element_text (size = 15),
axis.text.y = element_text (size = 15),
legend.title = element_text (size = 15),
legend.text = element_text (size = 15),
legend.position = c (1,1),
legend.justification = c (1,1))
A tibble: 16 x 3
ID Time Signal
<chr><chr><int>
1 MDC16b1 0min 342
2 MDC16b21 0min 360
3 MDC16b22 0min 248
4 MDC16b31 0min 144
5 MDC16b1 1min 336
6 MDC16b21 1min 348
7 MDC16b22 1min 241
8 MDC16b31 1min 145
9 MDC16b1 5min 330
10 MDC16b21 5min 347
11 MDC16b22 5min 237
12 MDC16b31 5min 145
13 MDC16b1 10min 335
14 MDC16b21 10min 345
15 MDC16b22 10min 233
16 MDC16b31 10min 145
Warning messages:
1: In fun (x, ...): NAs introduced by coercion
2: In FUN (X [[i]], ...): NAs introduced by coercion
3: In FUN (X [[i]], ...): NAs introduced by coercion
4: Removed 16 rows containing nonfinite values (stat_summary).
5: Removed 16 rows containing nonfinite values (stat_summary).
Warning will come out.

Answer # 1
Related articles
 graph drawing using python pandas matplotlib
 i want to speed up graph drawing in c #
 python 3x  i want to solve python graph drawing
 graph drawing with matplotlib
 python  graph drawing with matplotlib of pycharm
 python bar graph drawing, setting appropriate bar thickness
 automate graph drawing with matplotlib of python
 python sympy graph drawing
 python  about graph drawing of time more than 24 hours
 python graph drawing code
 [error] creating bar graph
 python  can you save the graph created by snsjointplot in png format?
 javascript  chartjs about graph drawing
 about python graph drawing library
 C # method of drawing a graph
 Python implementation example of drawing a graph using matplotlib in tkinter
 Analysis of Python scatter plot and line graph drawing process
 Python implements association graph drawing based on pyecharts
 graph drawing in ruby or c
 graph drawing with numpy and matplotlib
 how to set branch of regression tree (decision tree) using partykit (i want to make it vertical)
 [r] method to output boxplot graph of r by condition (aes(fill=●●) cannot be used for color coding)
 regarding the method to output the histograms of all columns at once
 cannot create line graph with ggplot2
 i want to specify the bubble color using variables in the data frame with ggplot2 of r
 r  i want to use a function instead of opts in ggplot2
 coastline plot in r
 r  about handling geom_vline in ggplot2
 changing the shape and color of dot plot of ggplot
You can probably see the direct cause of the error by trying the following code: