On Nov 8, 2006, at 11:41 AM, Michael Kubovy wrote:
> On Nov 8, 2006, at 4:44 AM, Ricardo Rodríguez wrote:
>
> Hi Ricardo,
>
> You probably have two columns in 'rs'. You need to do the barplot
> on one of them and use the other as the vector of labels. Assuming
> that the first column is n and
On Nov 8, 2006, at 11:12 AM, Patrick Burns wrote:
> My guess is that you have a data frame and not a matrix.
> Try
>
> barplot(as.matrix(rs))
>
> See chapter 1 of S Poetry for an explanation of data structures
> in R.
Thanks, Patrick,
You are completely right. I've been trying to plot a data f
On Nov 7, 2006, at 6:25 PM, Ricardo Rodríguez - Your EPEC ICT Team
wrote:
> library(RMySQL)
> con <- dbConnect(dbDriver
> ("MySQL"),host='localhost',username='root',dbname='ibdona')
> rs <- dbGetQuery (con,"select n,year from ibdona.library_location")
> dbDisconnect(con)
> Graph <- barplot(rs)
>
Hi all!
I do hope question from newcomers are wellcome here! Thanks in advance.
Trying to catch up and to acquired the needed background to easily
read R documents it is being a bit hard to me to get into the
required concepts to deal with data.
I am trying to get data from a MySQL database