I am starting to learn R programming for my thesis. I was just trying to plot some data, to see if I could find any threshold or pattern, and I used the ggplot() function. However, the axis appears and the data didn't. Like is shown in the picture bellow
I tried two ways of printing the plot and none of them worked.
Is there anything that you can help me with?
And I am sorry if this is a really stupid question, but I am really beginning and I really need this. Thank you a lot
title: "RNN-LSTM-tutorial" output: html_document: df_print: default editor_options:
chunk_output_type: inline
download.file("https://s3.amazonaws.com/keras-datasets/jena_climate_2009_2016.csv.zip","~/R/RNNTutorial/jena_climate_2009_2016.csv.zip")
unzip("~/R/RNNTutorial/jena_climate_2009_2016.csv.zip", "..."
library(tibble)
library(readr)
library(ggplot2)
library(keras)
library(tensorflow)
data_dir <- "~/R/RNNTutorial"
fname <- file.path(data_dir, "jena_climate_2009_2016.csv")
raw_data <- read.csv(fname)
p <- ggplot(raw_data, aes(x = 1:nrow(raw_data), y = 'T (degC)'))
p <- p + geom_line()
print(p)
ggplot(raw_data[1:1000, ], aes(x = 1:1000, y = 'T (degC)')) + geom_line()