Re: [R] probelm with xlab ylab and xaxp barplot

2016-07-27 Thread Abdoulaye Sarr
Hi Marc, I have something very close now, and think to leave it like that. Thank you so much for your help to solve the problem. Cheers, asarr On Mon, Jul 25, 2016 at 6:03 PM, Marc Schwartz wrote: > Hi, > > First, I noted again that you still have: > >xaxp=c(181,2005,1) > > in the first

Re: [R] probelm with xlab ylab and xaxp barplot

2016-07-25 Thread Abdoulaye SARR
Hi Marc, According to your guidance the labels are almost at the right place when adjusting mar values. A remaining need is to have the x axis at least for the two bottom figures as date from 1981 to 2005. Do you think this is doable. Ylim is fine but how tots in this case xlim. Best regards,

Re: [R] probelm with xlab ylab and xaxp barplot

2016-07-25 Thread Marc Schwartz
Hi, First, I noted again that you still have: xaxp=c(181,2005,1) in the first barplot() call. Get rid of that, as barplot() does not use normal axis ranges for the bar midpoints. Second, I do not see an indication that you are using the 'names.arg' argument in barplot(), which supplies the

Re: [R] probelm with xlab ylab and xaxp barplot

2016-07-25 Thread Marc Schwartz
Hi, If your code below is a verbatim copy and paste, you still have the following two lines active: par(mar=rep(2,4)) and op <- par(oma=c(1,2,3,5)) Comment out both of those lines and then see what the result looks like. As I noted before, try the plot **without any modifications** to th

Re: [R] probelm with xlab ylab and xaxp barplot

2016-07-25 Thread Abdoulaye SARR
>> Hi Marc and Others, I am still struggling to have my slab and ylab displayed on a bar plot. Marc did useful advise on playing with mar settings. I tried may combinations and can�t have it work. I paste the code I am suing hoping guidance on solving this issue. ## extract works for all

Re: [R] probelm with xlab ylab and xaxp barplot

2016-07-20 Thread Marc Schwartz
> On Jul 20, 2016, at 4:00 AM, Abdoulaye SARR wrote: > > I have the color of my bar plot displayed correctly but don’t have xlab, > ylab and xaxp don’t show up. > > here is example of yearly data (25 years 1981-2005) >> head(z1) > [1] -0.1001726 0.2014272 -0.8556950 0.1920669 -0.8013520 1

[R] probelm with xlab ylab and xaxp barplot

2016-07-20 Thread Abdoulaye SARR
I have the color of my bar plot displayed correctly but don’t have xlab, ylab and xaxp don’t show up. here is example of yearly data (25 years 1981-2005) > head(z1) [1] -0.1001726 0.2014272 -0.8556950 0.1920669 -0.8013520 1.3324949 code to display values par(mar=rep(2,4)) op <- par(oma=c(5