Hi,

please excuse the most likely very trivial question, but I'm having no idea
where to find related information:
I try to recapitulate very simple plotting behavior of Excel within R but
have no clue how to get where I want.

I have tab delimited data like

cell treatment value
line a treat1 4
line a treat2 3
line b treat1 8
line b treat2 11


I'd like to have a plot (barplot), that specifies 2 scales on the x-axis
(cell and treatment condition). In future this might become more complex, so
basically I'd like to have a table/matrix as x-axis! Where do I have to look
for working examples, I really spent a lot of time  studying graph
galleries?

Wanted: the same look that you get when marking above data within Excel and
selecting "barplot"!  I have no clue how my search-term should look like in
order to find the necessary information.

The only thing I can get to work is to generate a "second X-axis" at
position 3:
read.delim(file='test')->x
plot(x$value,xaxt="n")
axis(3,1:4,x$treatment)
axis(1,1:4,x$cell)

Not nice, but ok!

Unfortunately this does not work with barplot as the axis does not align
with the bars!
plot(x$value,xaxt="n",beside=T)

Any help is appreciated!
Regards
Maxim

	[[alternative HTML version deleted]]

