pgfplots: by row, ranking particular columnpgfplots particular legendplotting two time series with...

In the world of The Matrix, what is "popping"?

How spaceships determine each other mass in space?

Why do phishing e-mails use faked e-mail addresses instead of the real one?

How will Occam's Razor principle work in Machine learning

Is there a frame of reference in which I was born before I was conceived?

Is there any relevance to Thor getting his hair cut other than comedic value?

What is brightness?

Misplaced tyre lever - alternatives?

Learning to quickly identify valid fingering for piano?

Rationale to prefer local variables over instance variables?

School performs periodic password audits. Is my password compromised?

Did Amazon pay $0 in taxes last year?

Why won't the strings command stop?

Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?

If nine coins are tossed, what is the probability that the number of heads is even?

“I had a flat in the centre of town, but I didn’t like living there, so …”

Was it really inappropriate to write a pull request for the company I interviewed with?

Number of folds to form a cube , using a square paper?

Why are special aircraft used for the carriers in the United States Navy?

Convert an array of objects to array of the objects' values

Ahoy, Ye Traveler!

The reduction of NAD+

What can I do if someone tampers with my SSH public key?

Where is the fallacy here?



pgfplots: by row, ranking particular column


pgfplots particular legendplotting two time series with boundschange font size of particular columnpgfplots linear regression for the wrong columnpgfplots: addplot3 color particular planesPlot data row-wise with pgfplotsCompute average value of a column with pgfplotsPGFPlots: pgfplotstableread with string columncreate header row and index column pgfplotstableColumn width and row height with pgfplotstable













0















I have a dataset in which rows indicate years and columns firms. For each year, I want to plot the 1st firm's rank against the others.



In the example below, 2013 is tied for 5th (if this is too tricky, I can break the rounding) as cells 1 to 8 (ex. cell 0) in the 2013 row are ordered: 0.67 (F3; 1st) > 0.54 (F6; 2nd) > 0.48 (F2; 3rd) > 0.46 (F8; 4th) > 0.38 (F1 & F4; joint 5th). In years 2014 onwards, F1 is ranked 6th.



documentclass{article}
usepackage{pgfplotstable}
usepackage{tikz}
usepackage{pgfplots}
pgfplotsset{compat=newest}

begin{document}

pgfplotstableread[col sep=tab,row sep=\,header=false]{
% year F1 F2 F3 F4 F5 F6 F7 F8
2013 0.38 0.48 0.67 0.38 0.34 0.54 0.32 0.46 \
2014 0.37 0.48 0.70 0.39 0.34 0.54 0.31 0.50 \
2015 0.35 0.44 0.68 0.38 0.30 0.53 0.28 0.49 \
2016 0.33 0.43 0.67 0.35 0.29 0.51 0.29 0.47 \
}datatable

begin{tikzpicture}
begin{axis}[
ylabel = rank, y dir = reverse,
]

addplot table [x expr=coordindex, y expr= % what goes here?
] {datatable};

end{axis}
end{tikzpicture}

end{document}


A hand-coded version of the result I want is below.



hand-coded graph










share|improve this question




















  • 1





    For me it is still unclear how the resulting plot should look like. Could you add a sketch of the result. Then I think we will be able to provide a solution without multiple iterations because the question is "unclear".

    – Stefan Pinnow
    6 hours ago











  • Thanks Stefan. I've added a plot and tried to clarify the text.

    – Colin Rowat
    4 hours ago
















0















I have a dataset in which rows indicate years and columns firms. For each year, I want to plot the 1st firm's rank against the others.



In the example below, 2013 is tied for 5th (if this is too tricky, I can break the rounding) as cells 1 to 8 (ex. cell 0) in the 2013 row are ordered: 0.67 (F3; 1st) > 0.54 (F6; 2nd) > 0.48 (F2; 3rd) > 0.46 (F8; 4th) > 0.38 (F1 & F4; joint 5th). In years 2014 onwards, F1 is ranked 6th.



documentclass{article}
usepackage{pgfplotstable}
usepackage{tikz}
usepackage{pgfplots}
pgfplotsset{compat=newest}

begin{document}

pgfplotstableread[col sep=tab,row sep=\,header=false]{
% year F1 F2 F3 F4 F5 F6 F7 F8
2013 0.38 0.48 0.67 0.38 0.34 0.54 0.32 0.46 \
2014 0.37 0.48 0.70 0.39 0.34 0.54 0.31 0.50 \
2015 0.35 0.44 0.68 0.38 0.30 0.53 0.28 0.49 \
2016 0.33 0.43 0.67 0.35 0.29 0.51 0.29 0.47 \
}datatable

begin{tikzpicture}
begin{axis}[
ylabel = rank, y dir = reverse,
]

addplot table [x expr=coordindex, y expr= % what goes here?
] {datatable};

end{axis}
end{tikzpicture}

end{document}


A hand-coded version of the result I want is below.



hand-coded graph










share|improve this question




















  • 1





    For me it is still unclear how the resulting plot should look like. Could you add a sketch of the result. Then I think we will be able to provide a solution without multiple iterations because the question is "unclear".

    – Stefan Pinnow
    6 hours ago











  • Thanks Stefan. I've added a plot and tried to clarify the text.

    – Colin Rowat
    4 hours ago














0












0








0


1






I have a dataset in which rows indicate years and columns firms. For each year, I want to plot the 1st firm's rank against the others.



In the example below, 2013 is tied for 5th (if this is too tricky, I can break the rounding) as cells 1 to 8 (ex. cell 0) in the 2013 row are ordered: 0.67 (F3; 1st) > 0.54 (F6; 2nd) > 0.48 (F2; 3rd) > 0.46 (F8; 4th) > 0.38 (F1 & F4; joint 5th). In years 2014 onwards, F1 is ranked 6th.



documentclass{article}
usepackage{pgfplotstable}
usepackage{tikz}
usepackage{pgfplots}
pgfplotsset{compat=newest}

begin{document}

pgfplotstableread[col sep=tab,row sep=\,header=false]{
% year F1 F2 F3 F4 F5 F6 F7 F8
2013 0.38 0.48 0.67 0.38 0.34 0.54 0.32 0.46 \
2014 0.37 0.48 0.70 0.39 0.34 0.54 0.31 0.50 \
2015 0.35 0.44 0.68 0.38 0.30 0.53 0.28 0.49 \
2016 0.33 0.43 0.67 0.35 0.29 0.51 0.29 0.47 \
}datatable

begin{tikzpicture}
begin{axis}[
ylabel = rank, y dir = reverse,
]

addplot table [x expr=coordindex, y expr= % what goes here?
] {datatable};

end{axis}
end{tikzpicture}

end{document}


A hand-coded version of the result I want is below.



hand-coded graph










share|improve this question
















I have a dataset in which rows indicate years and columns firms. For each year, I want to plot the 1st firm's rank against the others.



In the example below, 2013 is tied for 5th (if this is too tricky, I can break the rounding) as cells 1 to 8 (ex. cell 0) in the 2013 row are ordered: 0.67 (F3; 1st) > 0.54 (F6; 2nd) > 0.48 (F2; 3rd) > 0.46 (F8; 4th) > 0.38 (F1 & F4; joint 5th). In years 2014 onwards, F1 is ranked 6th.



documentclass{article}
usepackage{pgfplotstable}
usepackage{tikz}
usepackage{pgfplots}
pgfplotsset{compat=newest}

begin{document}

pgfplotstableread[col sep=tab,row sep=\,header=false]{
% year F1 F2 F3 F4 F5 F6 F7 F8
2013 0.38 0.48 0.67 0.38 0.34 0.54 0.32 0.46 \
2014 0.37 0.48 0.70 0.39 0.34 0.54 0.31 0.50 \
2015 0.35 0.44 0.68 0.38 0.30 0.53 0.28 0.49 \
2016 0.33 0.43 0.67 0.35 0.29 0.51 0.29 0.47 \
}datatable

begin{tikzpicture}
begin{axis}[
ylabel = rank, y dir = reverse,
]

addplot table [x expr=coordindex, y expr= % what goes here?
] {datatable};

end{axis}
end{tikzpicture}

end{document}


A hand-coded version of the result I want is below.



hand-coded graph







pgfplots pgfplotstable






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 4 hours ago







Colin Rowat

















asked yesterday









Colin RowatColin Rowat

475




475








  • 1





    For me it is still unclear how the resulting plot should look like. Could you add a sketch of the result. Then I think we will be able to provide a solution without multiple iterations because the question is "unclear".

    – Stefan Pinnow
    6 hours ago











  • Thanks Stefan. I've added a plot and tried to clarify the text.

    – Colin Rowat
    4 hours ago














  • 1





    For me it is still unclear how the resulting plot should look like. Could you add a sketch of the result. Then I think we will be able to provide a solution without multiple iterations because the question is "unclear".

    – Stefan Pinnow
    6 hours ago











  • Thanks Stefan. I've added a plot and tried to clarify the text.

    – Colin Rowat
    4 hours ago








1




1





For me it is still unclear how the resulting plot should look like. Could you add a sketch of the result. Then I think we will be able to provide a solution without multiple iterations because the question is "unclear".

– Stefan Pinnow
6 hours ago





For me it is still unclear how the resulting plot should look like. Could you add a sketch of the result. Then I think we will be able to provide a solution without multiple iterations because the question is "unclear".

– Stefan Pinnow
6 hours ago













Thanks Stefan. I've added a plot and tried to clarify the text.

– Colin Rowat
4 hours ago





Thanks Stefan. I've added a plot and tried to clarify the text.

– Colin Rowat
4 hours ago










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f477993%2fpgfplots-by-row-ranking-particular-column%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f477993%2fpgfplots-by-row-ranking-particular-column%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Why does my Macbook overheat and use so much CPU and energy when on YouTube?Why do so many insist on using...

How to prevent page numbers from appearing on glossaries?How to remove a dot and a page number in the...

Puerta de Hutt Referencias Enlaces externos Menú de navegación15°58′00″S 5°42′00″O /...