I have what should be a simple question but I've been unable to solve
it in a reasonable length of time. For example with data like
ge
product response scenario
1wine5 base
2 steel 10 base
3 sugar4 base
4wine -10 policy
5 steel1
If I understand your example correctly, I think you're looking for a
dot-chart like this one from the R Graph Gallery:
http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=150
You'd just need to replace the green/blue circles with X's and O's,
respectively. Provided you reorganize your
#copy and paste this into R
f - (structure(list(TKN = c(0.103011025, 0.018633208, 0.104235702,
0.074537363, 0.138286096), RM = c(215, 198, 148, 119, 61)), .Names = c(TKN,
RM), class = data.frame, row.names = 25:29))
plot(f$TKN~f$RM, type=b)
I would like to reverse the X-Axis. How do I do this?
Try:
plot(f$RM~f$TKN, type=b)
On Tue, Apr 8, 2008 at 4:18 PM, stephen sefick [EMAIL PROTECTED] wrote:
#copy and paste this into R
f - (structure(list(TKN = c(0.103011025, 0.018633208, 0.104235702,
0.074537363, 0.138286096), RM = c(215, 198, 148, 119, 61)), .Names =
c(TKN,
RM), class =
On Tue, Apr 8, 2008 at 3:52 PM, stephen sefick [EMAIL PROTECTED] wrote:
Sorry, to have the x-axis to go from 200 to 0 or to reverse the x
points- the line starts on the left hand side of the graph at x=215,
y=0.10301103 ... and end with x=61, y=0.13828610. does this make
sense?
This is maybe not the most elegant way, but it does de job. You first
put f$RM values in negative form. Then you plot your graph without the
x axis labels. After, you create the labels you want.
Try this :
f - (structure(list(TKN = c(0.103011025, 0.018633208, 0.104235702,
0.074537363,
On Tue, Apr 8, 2008 at 2:18 PM, stephen sefick [EMAIL PROTECTED] wrote:
#copy and paste this into R
f - (structure(list(TKN = c(0.103011025, 0.018633208, 0.104235702,
0.074537363, 0.138286096), RM = c(215, 198, 148, 119, 61)), .Names = c(TKN,
RM), class = data.frame, row.names = 25:29))
7 matches
Mail list logo