Re: [R] Correctly plotting bar and scatter chart on 2-y axis plot with par(new=T)

From: dan.weavesham <dan.weavesham_at_googlemail.com>
Date: Thu, 24 Jun 2010 12:47:14 -0700 (PDT)

Hello,

Thanks for the advice so far -- still struggling with it, I must admit.

Here is some sample data, which I hope helps:

# y axis #1 -- data for the bar chart
-30353.382 -21693.519 -7049.923 -72968.722 -10267.584 -269432.795
-19847.670 -686283.171 -376231.754 -597800.080 -274637.587 -112663.167
-39550.445 -133916.431

# x axis -- in specific order, so cannot be tampered with !! ;-) 1 7 13 2 8 14 3 9 4 10 5 11 6 12

# y axis #2 -- scatter chart
50 25 5 25 5 100 5 100 100 75 75 50 50 50

Does this help explain what I'm looking to do? If not, is there a way I can get plot() to not change the order of the x axis data points -- so instead of plotting 1,2,3,n as per my original post, it plots 1,7,13,n? (I've tried coercing the data into character format with no luck)

Thanks again in advance.

--

View this message in context: http://r.789695.n4.nabble.com/Correctly-plotting-bar-and-scatter-chart-on-2-y-axis-plot-with-par-new-T-tp2266589p2267550.html Sent from the R help mailing list archive at Nabble.com.



R-help_at_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. Received on Thu 24 Jun 2010 - 20:21:31 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 25 Jun 2010 - 10:30:36 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive