plot - How to shift lines along the x axis in a line graph in Excel -
i'm wondering how can shift lines plotted, in line graph, along x axis, in
i have 3 different groups having different values category. when plot error bars of them overlapping , graph hard read. guess changing origin in x axis each line solve problem, can't figure out how it.
any suggestion?
thank you!
what trying called "jitter" in x-axis direction. cannot done line chart in excel. however, can done free xy chart labeler appspro (http://www.appspro.com/utilities/chartlabeler.htm), use of x-y scatter plot , lot of careful adjustments, or using small multiples instead of plotting same series on 1 chart.
with careful fiddling, create x-y scatter plot categorical labels.
- start adding x-axis values numbers (1 through number of x-axis labels), 1 series each group of data you're plotting.
- leave 1 of x-series whole numbers, , add or subtract small amount each other x-data series. should have, example, x1, x2 , x3 (1, 2, 3), (1.2, 2.2, 2.3) , (0.8, 1.8, 2.8).
- create x-y scatter plot 1 x- , y-series, located "as object in" existing worksheet.
- copy other series graph using "paste special...," using different column of x data each y series. "paste special..." options, check "new series" , "categories (x values) in first column" not "replace existing categories."
- set chart not resize cells (see https://superuser.com/a/126768 on how this).
- disable display of axis tick mark labels (right-click on axis, select "format axis..." "ticks" , choose "none" under "axis labels").
now, xy chart labeler add-in, continue
- create y data series, same value line plotted want x axis appear.
- copy , paste all-zero data series , whole-number x series above (step 4).
- select resulting plotted line, the tools menu select "xy chart lables"-->"add chart labels...," set labelposition "below" , select range of cells containing categorical labels.
- drag bottom edge of plot area new categorical labels axis labels.
- select line labeled, right-click , choose "format data series..." under "marker line" choose "no line" , under "marker style" choose "no marker."
without add-in, continue step 6, above:
- type x-axis labels cells along bottom of chart, or use offset() function fill in existing column (see http://www.excelforum.com/excel-formulas-and-functions/528363-transposing-data-using-offset-function.html).
- adjust size of cells, orientation of text , vertical , horizontal alignment of text align text labels axis ticks.
- right-click on chart, select "format chart area...," "line" , choose "no line."
- if want border around chart, adjust cells around chart , labels , use cell borders box in.
voila! have line graph categorical labels jittered in x- direction.
probably better option create small multiples chart—multiple copies of same graph, each graph gets different set of y data. way, compare data side-by-side rather overlapping. see chandoo's advice on creating small multiples: http://chandoo.org/wp/2011/11/16/small-multiples-charts-in-excel/
i believe create sort of chart in r (http://r-project.org) or pyplot, if you're willing step outside of excel.
Comments
Post a Comment