Recently Published
DSC Graph - For data visualization
The code reads a CSV file in the working directory, updates the column names, and creates an interactive plot using the plotly package. The plot displays heat flow versus time with a single color for the line. Here's a description of the code:
1. Load the required packages: tidyverse, readxl, stringr, rstudioapi, and plotly.
2. Set the working directory to the script's location using rstudioapi.
3. Find the CSV files in the current directory.
4. Read the first CSV file and convert it to a tibble.
5. Update the column names.
6. Create an interactive plot using plotly. The plot is a scatter plot with connected lines, showing the heat flow against time. The hover text displays the time, Tr (C), and the value (mW) for each point.
7. Set the plot labels and layout, including the title and axis labels.
8. Display the interactive plot using the print function.
HTML
for isaax