Hi Koraleus,

Here is a suggestion to (almost) do what you want:

# data set
x <- read.table(textConnection("Alpha Beta Gamma Delta
A 1        2      3        4
B  NA     2       4        5
D  8       9      10       11
E  5       NA      7       13"), header=TRUE)
closeAllConnections()
x

# plot
matplot(1:4, t(x), lty = 1, type = 'b', pch = 16, xaxt = 'n', las = 1,
                  xlab = 'Component', ylab = 'Values')
axis(1, 1:4, c(expression(alpha), expression(beta), expression(gamma),
expression(delta)))
legend('topleft', c('A','B','D','E'), lty = 1, pch = 16, col = 1:4, ncol =
4, title = "Column")

HTH,
Jorge


On Thu, Nov 5, 2009 at 2:47 PM, Koraelus <> wrote:

>
> Hello all,
>
> Thank you for you help with the first part, it worked perfectly. I now have
> a dataset that is culled to only include rows with no NA's or only 1 NA.
>
> What I want to achieve with the graph is:
> Plot the new data matrix:
>
> >   Alpha Beta Gamma Delta
> > A 1        2      3        4
> > B  NA     2       4        5
> > D  8       9      10       11
> > E  5       NA      7       13
>
> Such that (for this example) the x-axis has five points: Alpha, Beta,
> Gamma,
> Delta and the y-axis has a numerical axis representing the numbers in the
> matrix. I'm sorry, this example graph will look very crude.
>
> 4                              X
> 3                     X
> 2            X
> 1   X
>  Alpha  Beta  Gamma Delta
> (with a line connecting the dots)
>
> I would like to do this for all rows in the culled data matrix on a single
> window (using par(mfrow)) and for the NA's to be left blank.
>
> Thank you for your help so far!
> Koraelus
>
>
>
>
> Jorge Ivan Velez wrote:
> >
> > Hi Koraelus,
> >
> > Could you please explain us in more detail what would you like to do in
> > the
> > second part?
> >
> > HTH,
> > Jorge
> >
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/Sorting-NA%27s-and-Graphing-a-histogram-tp26157779p26157779.html
> >> Sent from the R help mailing list archive at Nabble.com.
> >>
> >> ______________________________________________
> >> R-help@r-project.org mailing list
> >> https://stat.ethz.ch/mailman/listinfo/r-help
> >> PLEASE do read the posting guide
> >> http://www.R-project.org/posting-guide.html
> >> and provide commented, minimal, self-contained, reproducible code.
> >>
> >
> >       [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-help@r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> > http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Sorting-NA%27s-and-Calling-Rownames-as-Variables-tp26157779p26219813.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]


