Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
One way is to do a Transient analysis, plot voltage across a component of interest, right-click the time axis of the plot, and edit the 'Quantity plotted' to read 'i(x)' instead of 'time', where x is the component.
Below is a example simulation where the Horizontal axis is changed as shown (by left-clicking on the axis) and the Vertical axis, generated by left-clicking on D1 (not right-click as Mike stated) is changed to logarithmic so that the logarithmic relation between current and voltage of a diode appears as (nearly) a straight line: