Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

Plotting data on y axis

$
0
0

@sangameshks wrote:

Code
data1<-read.csv(choose.files(),header = TRUE)
data1$Date<-as.Date(data1$Date, "%d %m %y")
close<-data1$Close
date<-data1$Date
plot(x=close,y=date)

PFB data sample
Date Open High Low Close
8-Jun-16 8285.5 8288.9 8252.05 8273.05
9-Jun-16 8273.35 8273.35 8184.6 8203.6
10-Jun-16 8180.25 8265.6 8162.85 8170.05
13-Jun-16 8102.25 8125.25 8063.9 8110.6
14-Jun-16 8134.4 8134.95 8069.5 8108.85
15-Jun-16 8139.4 8213.2 8123.15 8206.6
Error received
Error in plot.window(...) : need finite 'ylim' values
In addition: Warning messages:
1: In min(x) : no non-missing arguments to min; returning Inf
2: In max(x) : no non-missing arguments to max; returning -Inf

I also had a check on my data. elements in my

date column is missing

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles