r - Formal argument "type" matched by multiple actual arguments -


i have translated program r c++. program in question runs multiple iterations of different values produces histogram , plot. c++ graphs finicky decided save values in csv format , graph them in r. files large, smaller size files, 10 iterations produces 23000 rows , 3 columns. of course increase drastically 100 or 1000 iterations. format of csv files 1,3,0.0107171 corresponds col num, row num , data. run r:

>data<-read.csv(file.choose(),header=t) >plot(data,type="b", pch=19, xlab="x", ylab="y") error in plot.default(...) :    formal argument "type" matched multiple actual arguments 

as side note:

> hist(data[,3], xlab="step length (m)", main="") 

the histogram works without problems. please tell me if can provide more details, not when comes r might missing obvious. in advance.

you passing data.frame plot, dispatches plot.data.frame, will, data.frame more 2 columns, call

pairs(data.matrix(data)) 

so pass arguments in ... valid pairs (type not)

however think want think want plot data

  • what should on x axis
  • what should on y axis

and create call plot (or perhaps matplot) required.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -